Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: Fwd: accesing the serial port in non-blocking mode ? In-reply-to: <396CD6E6.FC10DB7D@kscable.com> To: Philippe Moutarlier Cc: Cygwin Mailing List Reply-to: Mark Paulus Message-id: <20000712200735.UUNW701@csp10509> MIME-version: 1.0 X-Mailer: PMMail 2000 Professional (2.10.2010) For Windows NT (4.0.1381;6) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit 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