Skip to content

This project enables setting up the chat room, letting the users from different hosts to join the chat room, messaging to each other.

Notifications You must be signed in to change notification settings

wzli1214/MultiPeopleChatRoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-People Chat Room

In this project, I intended to design a two-people chat room system based on User Datagram Protocol(UDP) and Java Socket Programming, which includes a server and two client. This system enables transmitting the messages to each other in this chatroom and each of them would receive and see their messages in the Graphical User Interface (GUI) chatting window.

Components:

· 1 server, which has a MessageBroadcastService to handle the message.

· 2 clients, each of them has a BroadcastServiceProxy to process the message.

Message Format

* Message Format -
* 1 - JOIN, 2 - MESSAGE, 3 - LEAVE
* {

* command: 2,

* from:"client A",

* message:"Hello, how are you doing?"

* }

Specification

  1. Run the server on a host. Get the IP address of the host which runs the server.
  2. Run the client on a different host. Input the name, input the server's IP address.
  3. Repeat the step 2 if you want to run multiple clients. You should have two clients at least to chat together.

Input

image

Chat Screens

image

Chat Between Different Hosts Example

image

Architecture

image

Join Process & Send Process & Leave Process

image

About

This project enables setting up the chat room, letting the users from different hosts to join the chat room, messaging to each other.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages