Archived

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

How do I go about programming network code in Linux?

This topic is 5172 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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