delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Wed, 12 Jul 2000 14:09:52 -0600 |
From: | Mark Paulus <mark DOT paulus AT wcom DOT com> |
Subject: | Re: Fwd: accesing the serial port in non-blocking mode ? |
In-reply-to: | <396CD6E6.FC10DB7D@kscable.com> |
To: | Philippe Moutarlier <philippe AT kscable DOT com> |
Cc: | Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com> |
Reply-to: | Mark Paulus <mark DOT paulus AT wcom DOT com> |
Message-id: | <20000712200735.UUNW701@csp10509> |
MIME-version: | 1.0 |
X-Mailer: | PMMail 2000 Professional (2.10.2010) For Windows NT (4.0.1381;6) |
Priority: | Normal |
Try doing a select(), after setting the appropriate bit in your read mask. When your bit is set, then you can do a read() from your port. On Wed, 12 Jul 2000 14:36:54 -0600, Philippe Moutarlier wrote: > >Hi everybody, > >please excuse this newbie question : I am trying to access and control >my serial ports using open + read/write + tcgetattr/tcsetattr. I need >to have the read in non-blocking mode so I set the VMIN and VTIME >to be both 0. > >But the read still blocks ... > >I also seem to have pbs setting the speed to 115200 using the >c_flag attribute. > >I have just downloaded and installed the latest cygwin. > >Am I doing something wrong or is it just not possible ? > >Thanks > >Philippe > >-- >Want to unsubscribe from this list? >Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |