The server class acts as the listener to the socket for a client to make a connection request.
When the server code encounters the accept method, it will block it until a client makes a connection request to it.
The server then accepts the connection. Once the connection is accepted, the server obtains a new socket.
The new socket object then puts the server in direct connection with the client. The server is now able to exchange messages with the client until the connection is terminated.
Checkout the full write-up at : https://makefilez.com/2022/10/15/mult...