Network Library

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2008
Posts: 33
Reputation: Nishinoran is an unknown quantity at this point 
Solved Threads: 0
Nishinoran Nishinoran is offline Offline
Light Poster

Network Library

 
0
  #1
Sep 7th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 95
Reputation: gusano79 is on a distinguished road 
Solved Threads: 9
gusano79 gusano79 is offline Offline
Junior Poster in Training

Re: Network Library

 
0
  #2
Sep 7th, 2008
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)
--smg
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 33
Reputation: Nishinoran is an unknown quantity at this point 
Solved Threads: 0
Nishinoran Nishinoran is offline Offline
Light Poster

Re: Network Library

 
0
  #3
Sep 7th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 33
Reputation: Nishinoran is an unknown quantity at this point 
Solved Threads: 0
Nishinoran Nishinoran is offline Offline
Light Poster

Re: Network Library

 
0
  #4
Sep 8th, 2008
I would rather not double post, but I want at least somewhere I can go to find help for myself.
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 95
Reputation: gusano79 is on a distinguished road 
Solved Threads: 9
gusano79 gusano79 is offline Offline
Junior Poster in Training

Re: Network Library

 
0
  #5
Sep 9th, 2008
Originally Posted by Nishinoran View Post
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.

Originally Posted by Nishinoran View Post
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.

Originally Posted by Nishinoran View Post
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.
--smg
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC