This project demonstrates a simple client-server communication in Java using Socket and ServerSocket.
It includes a package that simulates a dialog between two characters — Alice and Bob — where one sends a message, receives a response, and continues the conversation.
- Basic TCP communication with Java sockets
- Server listens for incoming connections using
ServerSocket - Client connects to the server using
Socket - Uses Java I/O classes:
BufferedReaderfor reading text inputInputStream/InputStreamReaderfor receiving dataWriter/OutputStreamWriterfor sending responses
- Simulated dialog exchange between Alice and Bob
- Beginner-friendly example for learning Java networking and I/O streams
- Server → Handles incoming connections and responds to client messages
- Client → Sends messages to the server and processes responses
- Dialog Package → Contains the Alice & Bob conversation simulation
- Clone the repository:
git clone https://github.com/Kamga-Roland/tcp-client-server.git