Mail Archives: cygwin/1997/11/25/04:43:46
From: | jer AT x10sion DOT com (Jeremy Garff)
|
Subject: | non-blocking io on serial
|
25 Nov 1997 04:43:46 -0800
: | |
Message-ID: | <Pine.LNX.3.94.971124164715.12783A-100000.cygnus.gnu-win32@fire.x10sion.com>
|
Mime-Version: | 1.0
|
To: | gnu-win32 AT cygnus DOT com
|
I figured out how to get the serial port open for reading under NT. It
was fairly easy, I changed the device name to com3. It appears that the
tcgetattr and tcsetattr function are in the cygwin libraries, since I was
able to link the code without problem. Unfortunately it seems they don't
work as they do in UNIX. I am setting the handle to non-blocking mode and
to wait for a period of 1/10 of a second or so. When the program executes
under windows the read call blocks forever. Is there a way to set a
handle to not block under NT with tcsetattr?
Thanks in advance,
Jeremy Garff
jer AT x10sion DOT com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -