|
From: | Paolo Bonzini |
Subject: | [Help-smalltalk] your emulation of select vs. winsock |
Date: | Sun, 17 Aug 2008 10:27:09 +0200 |
User-agent: | Thunderbird 2.0.0.16 (Macintosh/20080707) |
I have two questions then:1) If I am correct, your emulation only works with file descriptors. So I should wrap all socket functions under Win32 so that they call _open_osfhandle or _get_osfhandle: otherwise, socketx.c receives half-file descriptors and half-file handles.
2) Even though MsgWaitForMultipleObjects works for sockets, I guess GetFileType should be called earlier, so that the state of sockets is correctly returned as readable or writable or both.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |