Game Development Reference
In-Depth Information
Setting up a server and client
In this recipe, we'll look at the absolute minimum in order to get a server and client up and
running and be able to talk to each other.
This is accomplished in just a few lines of code.
The server and client will share some common data that we'll store inside a properties
file for easy access and external modification. First and foremost, the client must know the
address of the server, and both server and client need to know which port to listen on and
connect to. These would most likely be editable from within a game.
Search WWH ::




Custom Search