Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kyle-mccarthy/chat-client-server

Lab 3 for CS4850 at the University of Missouri. Creates a cient-server application that allows multiple clients to communicate with one another.
https://github.com/kyle-mccarthy/chat-client-server

Last synced: about 1 month ago
JSON representation

Lab 3 for CS4850 at the University of Missouri. Creates a cient-server application that allows multiple clients to communicate with one another.

Awesome Lists containing this project

README

        

# cs4850-chat-server

**To run the client-server application:**

1. Compile the java files
- javac Server.java
- javac Client.java
2. Run the files
- java Server
- java Client

**To debug in the case of an unexpected crash:**

1. Exists saying the port is in use
- In terminal run, lsof -i:{port_number} where for this project the port number is 17388
- If there is a process using the port, note the PID, and then run kill -9 {PID}

**Valid Commands**
- *help* View a list of valid commands.
- *login UserId Password* Attempt to login as UserId with Password.
- *register UserId Password* Attempt to register as user with username UserId and password password
- *send all Message* Send the entire chat room a Message.
- *send UserId Message* Send the UserID a Message.
- *who* View the current UserIDs connected to the server.
- *logout* Logout from the chat room.