Advertisement

Linux server, Windows client

Started by July 04, 2006 07:37 AM
7 comments, last by Ravuya 18 years, 7 months ago
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
Next time I give my advice, I'll buy some bubblegum so I won't your kick ass!
Well, how can you tell the difference?

Next time I give my advice, I'll buy some bubblegum so I won't your kick ass!
Advertisement
The only annoying thing you might have to sort out are endian problems.
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.
I think I'll have a try with Linux then.
I've got much to learn since I'm quite a noob with Linux :)

Thanks,

Starik
Next time I give my advice, I'll buy some bubblegum so I won't your kick ass!
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.

This topic is closed to new replies.

Advertisement