Table of Contents
void Main() calls StartChatServer()
- Creates new chat server object
- Chat server creates a new SQL Server connection instance
- Calls chatserver.Start() on port 1337
- Starts a thread to listen for and handle incoming connections
void Main() calls StartGameServer()
- Creats a new game server object
- Game server creates a new SQL Server connection instance
- Calls gameserver.Start() on port 1338
- Starts a thread to listen for and handle incoming connections
when TcpListener.AcceptTcpClient() finds a connection
- Creates a new Connection object
- Connection object creates a thread for communication with client
- Connection listens for incoming packets/data from client
- unless client receives a login packet, nothing else works
- See Packet Structures for login how to read login packets