This is a Tic Tac Toe network game.
- Start the TrisServer on a computer connected to your local network.
- Start the TrisClients on computers connected to the same network of the server.
- The Server and the Clients will automatically connect to each other.
- If you start at least 2 clients the server will automatically start a new game between the 2 players.
The application server hosts all the games, managing them with multiple threads to avoid blocking.
While the server is online it shares its address and port through a multicast socket,
allowing the hosts to connect to him.
The server accepts the clients and hosts the games using multiple threads to avoid unnecessary blocking.
Each client represents a player waiting to start a new game.
The client connects to the server through a TCP socket connection.
Every time a new client connects to the server, the client is added to the list of waiting players.
When there are at least two players waiting in the list, the server starts a new game between them.
All the clients and all the components of the server are executed by different threads.