Skip to content

hajali-amine/chatroom-sockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatRoom

A mini-project using java.net sockets and AWT.

it was an assignement given to us during a Distributed Applications session on our second year at INSAT, as an introduction to Java's sockets, threads and AWT.

Description:

The project consists of a simple client/server application.

The clients will be able to chat with eachother using an interface implemented with AWT.

The sockets will represent the connection between the client program and the server program.

Example - a server & 2 clients and a server:

sequence

Notes:

  • In case of n clients, when the clienti send a message, serverThreadi will broadcast the message to all of the other n-1 serverThreads.
  • Whenever a client joins or leaves, all of the other clients will get notified.
  • To leave, all you have to do is type quit.
  • If you close the chat window, the others will be notified that you left.

Steps:

  1. Execute the server.Main.
  2. Execute as many client.Client as you wish.
  3. Don't forget to enjoy!

About

A simple client/server app for users to chat.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages