Skip to content

Kymy/java-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javachat

Install components

Run mvn install to download and install needed components

Project compiling

Run mvn compile to compile the source code

Server

Run mvn exec:java -Dexec.mainClass="mx.unam.ciencias.myp.server.Server" -Dexec.args="3001" to run the server on port 3001

Chat. Can run multiple clients at the same time

Run mvn exec:java -Dexec.mainClass="mx.unam.ciencias.myp.chat.Chat" -Dexec.args="localhost 3001" to run the chat

To identify users

Run IDENTIFY username to run the client

To set status to users userstatus = {ACTIVE, AWAY, BUSY}

Run STATUS userstatus

To show all identified users

Run USERS

To send message to identified user

Run MESSAGE username messageContent

To send message to all identified users

Run PUBLICMESSAGE messageContent

To create a room

Run CREATEROOM roomName

To invite users to a room

Run INVITE roomName user1 user2...

To join to an invited room

Run JOINROOM roomName

To send message to room

Run ROOMESSAGE messageContent

To disconnect

Run DISCONENCT

About

Chat implementation using client/server architecture in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages