Re: read with timeout ??

2008-08-08 Thread Peter Jeremy
On 2008-Aug-08 16:30:49 -0400, Chuck Robey <[EMAIL PROTECTED]> wrote: >such a email, I have to admit my own needs fall more into a plain-jame serial >line, nothing a socket-oriented thing could help me with. If this is a normal serial port then termios(4) might help: Use non-canonical processing

Re: read with timeout ??

2008-08-08 Thread Nate Eldredge
On Fri, 8 Aug 2008, Chuck Robey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pieter de Goeje wrote: I think poll(2) is also simpler than select for this purpose. It does look like that, I need to check the implementation a bit, because the name of this thing makes me really suspici

Re: read with timeout ??

2008-08-08 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carlos A. M. dos Santos wrote: > On Fri, Aug 8, 2008 at 5:09 AM, Pieter de Goeje <[EMAIL PROTECTED]> wrote: >> On Friday 08 August 2008, Carlos A. M. dos Santos wrote: >>> On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge <[EMAIL PROTECTED]> >> wrote: >>>

Re: read with timeout ??

2008-08-08 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pieter de Goeje wrote: > On Friday 08 August 2008, Carlos A. M. dos Santos wrote: >> On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge <[EMAIL PROTECTED]> > wrote: >>> On Thu, 7 Aug 2008, Chuck Robey wrote: -BEGIN PGP SIGNED MESSAGE- Ha

Re: read with timeout ??

2008-08-08 Thread Carlos A. M. dos Santos
On Fri, Aug 8, 2008 at 5:09 AM, Pieter de Goeje <[EMAIL PROTECTED]> wrote: > On Friday 08 August 2008, Carlos A. M. dos Santos wrote: >> On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge <[EMAIL PROTECTED]> > wrote: >> > On Thu, 7 Aug 2008, Chuck Robey wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >

Re: read with timeout ??

2008-08-08 Thread Pieter de Goeje
On Friday 08 August 2008, Carlos A. M. dos Santos wrote: > On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge <[EMAIL PROTECTED]> wrote: > > On Thu, 7 Aug 2008, Chuck Robey wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> I have my head lost in a code problem. I just hit a poi

Re: read with timeout ??

2008-08-07 Thread Carlos A. M. dos Santos
On Thu, Aug 7, 2008 at 10:14 PM, Nate Eldredge <[EMAIL PROTECTED]> wrote: > On Thu, 7 Aug 2008, Chuck Robey wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> I have my head lost in a code problem. I just hit a point where I need to >> do a >> read from an fd, but I need to associa

Re: read with timeout ??

2008-08-07 Thread Nate Eldredge
On Thu, 7 Aug 2008, Chuck Robey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have my head lost in a code problem. I just hit a point where I need to do a read from an fd, but I need to associate it with a timeout, on the order of 1 second, something like that. I had the feeling that

read with timeout ??

2008-08-07 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have my head lost in a code problem. I just hit a point where I need to do a read from an fd, but I need to associate it with a timeout, on the order of 1 second, something like that. I had the feeling that there's a function in FreeBSD's libc tha