Sockets in general
Members - Reputation: 142
Posted 27 April 2000 - 07:09 PM
Members - Reputation: 122
Posted 28 April 2000 - 04:19 AM
You are not a real programmer until you end all your sentences with semicolons;
Visit the ROAD Programming Website for more programming help.
Moderators - Reputation: 10709
Posted 28 April 2000 - 06:37 AM
To make it easier to code for linux later, don''t use WSAAsyncSelect. select or WSAEventSelect is fine, especially if multi-threading. However your WSAEventSelects will have to replaced by select statements, and you''ll block on those rather than on the event objects. Stick with standard I/O functions, send(), recv(), sendto(), recvfrom(), as the overlapped and extended versions aren''t available on UNIX boxes. Also note that FD_SET is a structure in Windows but is a typedef of a primitive type in UNIX.