Hi, are there any good reads on the winsock select function in C++?[C++]winsock2 select() - Any good tutorials?
Beej's Guide to Network Programming
http://beej.us/guide/bgnet/output/html/m鈥?/a>
Winsock Programmer's FAQ
http://tangentsoft.net/wskfaq/examples/b鈥?/a>[C++]winsock2 select() - Any good tutorials?
select is used to poll a set of descriptors to see if a read, write or error bit is set on them. There are much more efficient OS-dependant methods of polling though, for example kevent, WSAWaitForMultipleEvents, epoll, kpoll...
As you're developing on windows I suggest you check out WSAWaitForMultipleEvents, the knowledge you gain will easily be transferable to WSAWaitForMultipleObjects which allows you to handle non-blocking network code in the same process as the windows message loop.
http://www.codersource.net/winsock_tutor鈥?/a>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment