943,844 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 732
  • C++ RSS
Sep 7th, 2008
0

Network Library

Expand Post »
Hey, I was wondering what is the most popular/best network library for free download.

I guess I should give my situation, as that might decide which is best for me.

Basically, I want the ability for 2 or more players on different computers, on the same LAN, to be able to A: Host a game and another player be able to automatically pick it up
B: Play together in real-time, basically, I just want to be able to pass arrays and variables.

So, which library would be most useful to me?
Last edited by Nishinoran; Sep 7th, 2008 at 6:16 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Nishinoran is offline Offline
33 posts
since Apr 2008
Sep 7th, 2008
0

Re: Network Library

You might try SDL_net. It is free and cross-platform, and should cover both of your requirements:
  • Server detection using UDP to broadcast to the local network (though which side does the broadcasting is a different conversation)
  • Communication between server and client using TCP (if you care about sequencing and guaranteed transmission, and don't mind the wait) or UDP (if you don't care about those things and just want it to be fast)
Reputation Points: 182
Solved Threads: 71
Posting Pro in Training
gusano79 is offline Offline
475 posts
since May 2004
Sep 7th, 2008
0

Re: Network Library

That looks like it may work for me, would you know anywhere I can see what functions it has, and some basics on how to use them? Also, I don't really need it to be cross-platform, windows only works fine for me.
Last edited by Nishinoran; Sep 7th, 2008 at 9:55 pm.
Reputation Points: 10
Solved Threads: 0
Light Poster
Nishinoran is offline Offline
33 posts
since Apr 2008
Sep 8th, 2008
0

Re: Network Library

I would rather not double post, but I want at least somewhere I can go to find help for myself.
Reputation Points: 10
Solved Threads: 0
Light Poster
Nishinoran is offline Offline
33 posts
since Apr 2008
Sep 9th, 2008
0

Re: Network Library

Click to Expand / Collapse  Quote originally posted by Nishinoran ...
would you know anywhere I can see what functions it has, and some basics on how to use them?
The library is documented decently from a "what functions are there" perspective.

Good network programming techniques are another topic altogether; an Internet search should uncover some decent guides. There are also some samples that come with the library, if code helps.

Click to Expand / Collapse  Quote originally posted by Nishinoran ...
I don't really need it to be cross-platform, windows only works fine for me.
Then you're covered; the author provides Win32 binaries on the page I originally linked to.

Click to Expand / Collapse  Quote originally posted by Nishinoran ...
I would rather not double post, but I want at least somewhere I can go to find help for myself.
This post was "where do I find a networking library"--I would consider a post about "how do I do <something specific> with TCP/UDP" an entirely different post, if that's what you mean.
Reputation Points: 182
Solved Threads: 71
Posting Pro in Training
gusano79 is offline Offline
475 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Recursion programming help
Next Thread in C++ Forum Timeline: Advantages of an interprocess communication based on XML files





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC