https://github.com/shivamswarnkar/chat-client-server
Setup personal server, share IP address and connect with each other in your personal chat box. Use Client to get a graphical interface for multiple user chatting.
https://github.com/shivamswarnkar/chat-client-server
Last synced: 3 months ago
JSON representation
Setup personal server, share IP address and connect with each other in your personal chat box. Use Client to get a graphical interface for multiple user chatting.
- Host: GitHub
- URL: https://github.com/shivamswarnkar/chat-client-server
- Owner: shivamswarnkar
- Created: 2016-09-17T02:02:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T02:05:29.000Z (about 9 years ago)
- Last Synced: 2025-03-21T04:28:50.409Z (7 months ago)
- Language: Java
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat-Client-Server
Setup personal server, share IP address and connect with each other in your personal chat box. Use Client to get a graphical interface for multiple user chatting.The chat server will accept connections from clients on port 5190 and relay anything sent to the server to all clients (including the one who originally sent the message), with the sender's name prepended to the message. For example if "DKatz" sends "Hello world" the server will relay that message to all connected clients as "DKatz: Hello world" The server should not produce any output on the screen. Clients, upon connecting, have to announce their username, which should NOT be forwarded to the other clients. The server should not introduce itself, to the client!
The chat client is designed for the above server. The client will have a top box which is displays all the messages from the clients, and a bottom input which will allow text to be written to the server. Also include a "SEND" button. Upon starting the client, you should ask which server to connect to and what username to use. When the client connects to the server it sends the username as the first message. After the first message is sent, anything received from the server is displayed in the top box and anything written in the bottom box (after the send button is pushed) is sent to the server.