Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/kyle-mccarthy/chat-client-server
- Owner: kyle-mccarthy
- Created: 2015-11-29T22:23:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-01T20:27:28.000Z (about 9 years ago)
- Last Synced: 2024-11-06T06:04:32.584Z (3 months ago)
- Language: Java
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.