Networking Forums

Networking Forums > Computer Networking > Linux Networking > Regarding behaviour of select() all

Reply
Thread Tools Display Modes

Regarding behaviour of select() all

 
 
Rajat
Guest
Posts: n/a

 
      10-09-2004, 07:02 AM
Can any body tell me the behavoiur of following code snippt,

struct timeval tv;

tv.tv_sec = 0;
tv.tv_usec = 18000;

select( 1, (fd_set *)0, (fd_set *)0, (fd_set *)0, &tv );

So what would be the behaviour of this select() call?? If you think it will hold
the process for 18000 ms, then its not behaving like that.

Any help would be appreciated.
 
Reply With Quote
 
 
 
 
Bryan Batten
Guest
Posts: n/a

 
      10-09-2004, 08:54 PM
Rajat wrote:
> Can any body tell me the behavoiur of following code snippt,
>
> struct timeval tv;
>
> tv.tv_sec = 0;
> tv.tv_usec = 18000;
>
> select( 1, (fd_set *)0, (fd_set *)0, (fd_set *)0, &tv );
>
> So what would be the behaviour of this select() call?? If you think it will hold
> the process for 18000 ms, then its not behaving like that.
>
> Any help would be appreciated.


18 (not 18,000) milliseconds?
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem with select (or maybe me :-)) pistmaster@googlemail.com Linux Networking 1 09-17-2008 08:59 PM
How to select network protocol Bob Altman Windows Networking 2 06-30-2007 01:49 PM
select() woes Generic Usenet Account Linux Networking 1 10-17-2006 10:50 PM
AF_PACKET and select Gisle Vanem Linux Networking 0 12-15-2004 01:08 PM
Help with Select Marcia Hon Linux Networking 3 02-20-2004 05:50 PM



1 2 3 4 5 6 7 8 9 10 11