Menu

#192 socket.cls select method

v4.2.0
open
nobody
None
1
2014-05-11
2014-05-11
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
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.