Creating a small server..
What would be the best way to create a small server? (<50 clients)
Functions:
Listen for incomming connections on port
Read incomming data from clients
Write data to other clients
Broadcasting all recived info to the other clients to put it simple, after verifying its valid.
asynchronous sockets is not an option as it has to be linux-portable.
What would be the best way? threads?
(TCP)
[edited by - worms on March 30, 2003 10:07:02 AM]
Yeah, iv gotten the same answer quite a few places, but got any info on select()?, havnt touched it :|
small tutorial perhaps?
small tutorial perhaps?
Excuse my ignorance but I''ve got to ask why client server if you are having less than 50 players and you are just going to pass the data to all the cients anyways? Wouldnt P2P be way easier? Then for save games you could implement a character save.
Unless you are talking a persistant world or you are truely concerned about hacking the datastream
Jsut a thought.
Mark
Fly by night Studios
C++ Coders needed
Unless you are talking a persistant world or you are truely concerned about hacking the datastream
Jsut a thought.
Mark
Fly by night Studios
C++ Coders needed
Mark MacPherson
Flybynight Studios: Owner
Current Skillsets: Project Manager - Team Lead - Scripter - 2D Artwork - Basic 3D Modeller - Web Development - Marketing - Administration
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement