Skip to content

Java Sockets implementation demonstrating a simple client–server connection over a network. Includes basic message exchange between client and server to illustrate socket programming fundamentals.

Notifications You must be signed in to change notification settings

Kamga-Roland/tcp-client-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Socket Client-Server Communication

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.

✨ Features

  • 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:
    • BufferedReader for reading text input
    • InputStream / InputStreamReader for receiving data
    • Writer / OutputStreamWriter for sending responses
  • Simulated dialog exchange between Alice and Bob
  • Beginner-friendly example for learning Java networking and I/O streams

📂 Project Structure

  • 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

🚀 How to Run

  1. Clone the repository:
    git clone https://github.com/Kamga-Roland/tcp-client-server.git

About

Java Sockets implementation demonstrating a simple client–server connection over a network. Includes basic message exchange between client and server to illustrate socket programming fundamentals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages