08-29-2005, 01:10 AM
Would someone be able to explain to me how to use the Winsock command SelectSocket in FreeBasic in order to determine the status (readability etc) of a previously opened socket?
All the turorials on the web for C Language use of that command involve using FD_SET's to specify sockets to be checked, but FreeBasic does not seem to like FD_SET commands so I'm presuming there's another way.
Although FB will let me DIM rdfs as FD_SET, it does not seem to accept any commands for adding descriptors to that set. Or at least, I don't know what the right commands are.
Should I be using the FD_SET 's with SelectSocket, or something else like a regular array?
Any help is appreciated, thanks.
All the turorials on the web for C Language use of that command involve using FD_SET's to specify sockets to be checked, but FreeBasic does not seem to like FD_SET commands so I'm presuming there's another way.
Although FB will let me DIM rdfs as FD_SET, it does not seem to accept any commands for adding descriptors to that set. Or at least, I don't know what the right commands are.
Should I be using the FD_SET 's with SelectSocket, or something else like a regular array?
Any help is appreciated, thanks.