PDA

View Full Version : C++ Multiplatform sockets



Pierrick584
July 17th, 2011, 01:12 AM
Hello, i'm starting to work onto a game, and i'm horribly stuck on the networking part, i tried the panda3d client-server in the documentation, well, seems there's only python documentation on it... tried asio, cant find a good tutorial that actualy compile, tried... about 5 or more other sockets library, none work/got good documentation.

Realy, i'm stuck for like two years on the multiplatform sockets problem, anybody out there can possibly help me? in any way with any library that is multiplatform (if mac is excluded, i wont cry)

Thanks in advance to anyone who will try to help.

karlson
July 17th, 2011, 01:44 AM
Hello, i'm starting to work onto a game, and i'm horribly stuck on the networking part, i tried the panda3d client-server in the documentation, well, seems there's only python documentation on it... tried asio, cant find a good tutorial that actualy compile, tried... about 5 or more other sockets library, none work/got good documentation.

Realy, i'm stuck for like two years on the multiplatform sockets problem, anybody out there can possibly help me? in any way with any library that is multiplatform (if mac is excluded, i wont cry)

Thanks in advance to anyone who will try to help.

If you are looking for a multiplatform Socket Abstraction library take a look at http://www1.cse.wustl.edu/~schmidt/ACE.html

I am not sure why you had issues with ASIO. Boost's tutorial page worked pretty well for me.

Pierrick584
July 17th, 2011, 03:58 AM
I did have a look at ACE.. i guess i dint check in the good section in "documentation" yet, i dont see where a tutorial for the basics.

As of the official boost asio documentation, i find the tutorial not clear at all... dunno, cant get **** working with it, and i doupt i'm the problem, as i remember a few years ago when i used to be on windows, found a winsock tutorial and got a basic chat client/server up in a very short time (aint talking of copy/paste)

cipherboy_loc
July 17th, 2011, 04:43 AM
A friend recommend the boost libraries for a cross platform project. Like you, I had issues getting it working, but I remember finding some tutorial somewhere (sorry, was an old project -- don't remember what the links were).


Cipherboy

karlson
July 17th, 2011, 04:43 AM
I did have a look at ACE.. i guess i dint check in the good section in "documentation" yet, i dont see where a tutorial for the basics.


ACE gives you various patterns for implementing network communicating software, so you might want to either invest in or check out at the library(if you can) of these:

http://www.riverace.com/acebooks/index.htm

Pierrick584
July 17th, 2011, 12:09 PM
I would definitively be up of buying one of these books, i do learn alot by books, if i actualy manage to get some ACE code compiling before though... and i do have some trouble on that

GeneralZod
July 17th, 2011, 12:13 PM
"The Boost C++ Libraries" is a good, free book on Boost, and has a sample client and server implementation:

http://en.highscore.de/cpp/boost/asio.html#asio_networkprogramming

Pierrick584
July 18th, 2011, 03:01 AM
"The Boost C++ Libraries" is a good, free book on Boost, and has a sample client and server implementation:

http://en.highscore.de/cpp/boost/asio.html#asio_networkprogramming


Thanks, thats definitively a good link, beside i still have trouble after reading it, it does not seem complete enough for what i wana do... witch isint that complex realy, i'm barely looking to have simple tcp and udp connection, and send strings and int

SaberToothSlug
January 27th, 2012, 10:26 AM
Pierrick584 (http://ubuntuforums.org/member.php?u=1145035), since this an older post I thought I would check in with you before posting anything lengthy. I was impressed that you had been pursuing this issue for two years and was wondering if you had anything working with Panda yet?