From: Eric Hodel Date: 2004-03-19T16:08:36-08:00 Subject: Re: Server on Ruby --NSDslKtQVY7LeFYu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable gabriele renzi (surrender_it@rc1.vip.ukl.yahoo.com) wrote: > select( readArray [, writeArray [errorArray [timeout]]] ) -> anArray > or nil > =20 > Performs a low-level select call, which waits for data to become > available from input/output devices. The first three parameters are > arrays of IO objects or nil. The last is a timeout in seconds, which > should be an Integer or a Float. The call waits for data to become > available for any of the IO objects in readArray, for buffers to have > cleared sufficiently to enable writing to any of the devices in > writeArray, or for an error to occur on the devices in errorArray. If > one or more of these conditions are met, the call returns a > three-element array containing arrays of the IO objects that were > ready. Otherwise, if there is no change in status for timeout seconds, > the call returns nil. If all parameters are nil, the current thread > sleeps forever. Note that select() only blocks the current thread, so if you have multiple threads, and select() in one of them, only that thread will block. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --NSDslKtQVY7LeFYu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFAW4uEMypVHHlsnwQRAmseAJ4/pMtd4sg4hi8R/QjtVFEF0pvDVwCfSqAt lZEbbaUZZ1J9x28CuUuGLzY= =a4lN -----END PGP SIGNATURE----- --NSDslKtQVY7LeFYu--