Archived

This topic is now archived and is closed to further replies.

Running_Wolf

How do I go about programming network code in Linux?

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites