The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: questions about non-blocking read()
DemonMaster
Newbie
Rank: 1



UID 114
Digest Posts 0
Credits 0
Posts 55
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 20, 2007 10:42 AM  Profile | P.M. 
questions about non-blocking read()



questions about non-blocking read()



hi,

i need to read incoming data from a serial port. i also need the read() to be non-blocking, such that my program can then check for any data to be send via the serial port. i followed some faqs on the net, set read() to be non-blocking, and got eagain errors popping out.

i realise that under non-blocking mode, it is normal to receive eagain errors. thus, the next thing i did, is try using select().


is select() also blocking? how do i use select()?
can someone provide me some codes or any directions to get started on select()?


Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:41 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.004528 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP