select_tut(2) (was Re: [plug] [OT] Perl Sub Modify Global Variable)

Timothy White weirdo at tigris.org
Wed Feb 16 14:13:20 WST 2005


Russell Steicke wrote:

>You might want to look at a more traditional unix way of handling
>things like this: select().  No threads, so no locking issues.  Your
>server is likely to be waiting on IO most of the time anyway, so it
>uses select() to wait for any of the file descriptors that become
>ready.  Your read set in the select always includes the listening
>socket file descriptor.  When that fd returns readable, call accept on
>it and add the new file descriptor to the read set.  Each time
>select() returns you look at the active file descriptors and do
>whatever they require.
>
>select_tut(2) will tell you more.
>
>You actually end up writing a state machine driven by select(), but
>it's not that hard.
>
As I don't seem to have this man page on my system can somebody tell me
which Debian package to install to get it or failing that send it to me?

Thanks

Tim

--
Tim White - Use the Fox, Luke!
PGP/GPG id: 602E944D, Pub Key Serv: subkeys.pgp.net
Fingerprint: 04C2 9682 B7B2 3006 009D  A9F3 067E EDCD 602E 944D
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
--

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20050216/20312935/attachment.pgp>


More information about the plug mailing list