| | |
Network Library
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
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
Views: 523 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project proxy python random read recursion recursive reference return sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





