Chatter-jee server accepts the client connection in the following steps.
- Create a Client Socket.
- Accept a connection on this client socket.
- Create Archive Files for sending and receiving data on this client socket.
- Put the address of newly created client socket into the Sockets List.
- Spawn a thread dedicated to the new client. This enables our Chatter-jee Server to serve multiple
clients concurrently.
- Add 1 to the number of connections.
This means after the first client connects sucessfully to the Server, it has the following structure.