[LUGOS-PROG] select()
Bojan
naboj at gmx.net
Fri Dec 1 14:28:50 CET 2006
Miha Tomšič je napisal(a):
> Hojla!
>
> A ima kdo kakšen dober tutorial za select(), ker mi ni vse jasno?
Poglej si na tem naslovu:
http://www.gnu.org/software/libc/manual/html_node/Waiting-for-I_002fO.html#Waiting-for-I_002fO
izgleda nekako takole:
_Function:_ int *select* /(int nfds, fd_set *read-fds, fd_set
*write-fds, fd_set *except-fds, struct timeval *timeout)/
The |select| function blocks the calling process until there is
activity on any of the specified sets of file descriptors, or until
the timeout period has expired.
The file descriptors specified by the read-fds argument are checked
to see if they are ready for reading; the write-fds file descriptors
are checked to see if they are ready for writing; and the except-fds
file descriptors are checked for exceptional conditions. You can
pass a null pointer for any of these arguments if you are not
interested in checking for that kind of condition. ...
lp
Bojan
-------------- naslednji del --------------
HTML priponka je pre?i??ena...
URL: http://liste2.lugos.si/pipermail/lugos-prog/attachments/20061201/58c89c84/attachment.htm
More information about the lugos-prog
mailing list