Jump to content
  • Advertisement

Archived

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

Running_Wolf

How do I go about programming network code in Linux?

This topic is 5457 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

Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!