How do I go about programming network code in Linux?
Winsock is surprisingly cross-platform. If you stayed away from the async stuff that ties your code into the Win32 message loop, you should be fine. Maybe have to change a few defines here and there, as well as which headers to include, but nothing that should force you to refactor your entire network code.
one word - Posix
Use the posix sockets library. It is probably what winsock is built on anyway. In this lib you find such functions as select(), listen(), bind(), setsockopt(), ioctl(), send(), recv(), etc.
Get the Richard Williams book on sockets programming in Unix.
RandomTask
Use the posix sockets library. It is probably what winsock is built on anyway. In this lib you find such functions as select(), listen(), bind(), setsockopt(), ioctl(), send(), recv(), etc.
Get the Richard Williams book on sockets programming in Unix.
RandomTask
quote:Original post by RandomTask
Get the Richard Williams book on sockets programming in Unix.
That''s William Richard Stevens or W. Richard Stevens, but you should still get his book
quote:Original post by Kwizatz
yes, Winsock is Windows implementation of POSIX sockets.
Proud aedGUI developer.
actually Winsock deviates from the POSIX standard (although it''s still pretty close)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement