Jump to content
  • Advertisement
Sign in to follow this  

Linux server, Windows client

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

Hi, I'm wondering if it's viable to program a Linux based server and a windows client. What I actually mean is, is it practical and does it have advantages? And is it often applied in the game development world? Because if it is viable I want to buy this book, which seems to look oke voor novice and expert programmers. The Definitive Guide to Linux Network Programming (Expert's Voice) (Paperback) Link Greetings, Starik

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
"...I'm wondering if it's viable to program a Linux based server and a windows client..."
Very much so, have you never played on line and seen that most servers are *nix? infact most of the web is *nix.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by StarikKalachnikov
Well, how can you tell the difference?


If you don't see a pretty penguin then stable == nix

Share this post


Link to post
Share on other sites
The only thing you have to keep account of is the format in which you send your data. You must ensure that all data is in the same endian format, I believe big endian is standard for network data. The size of data should also be accounted for, only data of known size should be sent. If both the client and server agree and follow these rules, then your code will work.

The actual network code itself can be made portable if you pick a portable networking library. Raknet is one portable network library.

But as the AP said the web is mostly linux server, windows client.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
excellent site for linux specific questions
http://www.linuxquestions.org

Share this post


Link to post
Share on other sites
Keep in mind that Winsock and the BSD sockets library (which is what Linux uses for socket communication) are almost identical.

You should be able to carry over most of the stuff you learn about sockets in the book to a Winsock-based machine and have it work the same.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!