#192 socket.cls select method

v4.2.0
open
nobody
None
1
2014-05-11
2014-05-11
Ruurd Idenburg
No

the current socket.cls select method has 2 things I don't like:

  1. the read, write and exception arrays that are returned do not have members of the socket class, but rather their file-descriptors as returned from the rxsock library.

  2. on a timeout (return code 0, when no sockets are detected that can be processed) the arrays provided are not cleared, forcing a user to make an additional check for a 0 return code to detect that situation.

The attached patch file will correct both situations.
Ruurd

1 Attachments

Discussion


Anonymous


Cancel   Add attachments