Game Development Community

Cross-Platform Client/Server

by Grant McNeil · in Technical Issues · 09/22/2004 (5:44 pm) · 4 replies

Hey,

My friends and I are re-inventing the wheel, we're writing our own simple engine in C++ using SDL [w/ OpenGL].

We want it to have simple client/server network code; but were coding in linux, and we want everything to be cross-platform. So winsock isn't really an option.

Can anyone point me in the right direction for a resource for beginning cross-platform tcp/ip network programming? A set of tutorials online, a book, anything?

Thanks,
--Grant

#1
09/22/2004 (5:50 pm)
And, looking in resources, like I should have in the first place, I found this:

http://www.ecst.csuchico.edu/~beej/guide/net/html/

It's split up into two sections, Unix/Solaris and Windows, and in the windows section it uses winsock, in the Unix/Solaris section it uses different libraries; But the code is the same.

Do I just have to include different libraries for my project?

and if thats the case, will the Linux/Unix boxes and Windows boxes be able to communicate?

--Grant
#2
09/23/2004 (12:08 am)
Hey Grant, have you looked at TNL? It's award-winning, cross-platform, kick-butt Client/Server networking technology at your fingertips (free under the GPL, or for very little cost for an Indie license). The site has some great docs too. Maybe not quite totally beginner friendly, but they're quite good.
#3
09/23/2004 (12:34 am)
Since you're talking about Winsock I'm guessing you want to go with non-intrusive and thin. If that's the case I'd look at HawkNL or if you want a library which isn't as bare bones you have the TNL or Raknet.
#4
09/25/2004 (7:30 am)
Thanks,

I've been looking at the TNL, looks like its exactly what I need.

Thanks,
--Grant