🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

async socket programming?

Started by
0 comments, last by RPGman 23 years, 3 months ago
how do i use select() or another way of doing async socket programming?
--------------------------------------------------------------If it sounds like a good idea, do it. It is much harder to get permission than it is to apologize.
Advertisement

Find a good book on WinSock. Network Programming for Microsoft Windows (MS Press, by Anthony Jones and Jim Ohlund) is a good place to start.

Async socket programming comes in different flavors.

You can use WSAAsyncSelect on Win95/98/NT/2K
You can use WSAEventSelect on Win98/NT/2K (or Win95 with WinSock 2.0 installed)
You can use Overlapped I/O on Win98/NT/2K (or Win95 with WinSock 2.0 installed)
or you can use Completion Ports on WinNT/2K (but not 95/98)

You would probably want to try WSAAsyncSelect or WSAEventSelect. Check the MSDN Library and code web sites for examples programs.

// CHRIS
// CHRIS [win32mfc]

This topic is closed to new replies.

Advertisement