| | |
Network Library
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2008
Posts: 33
Reputation:
Solved Threads: 0
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?
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.
•
•
Join Date: May 2004
Posts: 95
Reputation:
Solved Threads: 9
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
•
•
Join Date: May 2004
Posts: 95
Reputation:
Solved Threads: 9
•
•
•
•
would you know anywhere I can see what functions it has, and some basics on how to use them?
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.
•
•
•
•
I don't really need it to be cross-platform, windows only works fine for me.
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
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Send data on a serial port (C++)
- Network lib (C++)
- Searching for a good network Library (Python)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- Need to network two computers from different blocks (Networking Hardware Configuration)
- Command line software update error. truncated or malformed library (OS X)
- Library compatibility problem? (C)
Other Threads in the C++ Forum
- Previous Thread: Recursion programming help
- Next Thread: Advantages of an interprocess communication based on XML files
| Thread Tools | Search this Thread |
Tag cloud for C++
api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linker list loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive reference return rpg search simple spoonfeeding string strings struct temperature template templates test text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





