Simple Client and Server
Previous    Next    Home    Server Source    Client Source    Client Package    Server Package

The Server:

The Client:

A Client and Server
  1. Start the server by clicking on the Start Server button. Connect the client by clicking on the Connect button of the client. Edit messages in the Input text field and send them using the Send It button. To disconnect, send the message BYE or use the Close button on the client.
  2. The server displays the message it has received from the client and sends that message back to the client. The server also displays what it is sending back to the client. The client displays what it has received from the server.
  3. Threads are used to prevent process freezes while waiting for messages.