chineseqosa.blogg.se

Multi chat client java
Multi chat client java











> To send a private text message, you type: 'MSG NICKNAME '. the tag "GLOBAL']' specifies that everyone should receive it and after that comes the text. The first three letters identify that this is a text message. > To send a public message (all clients should receive it), you type: 'MSG GLOBAL '. The identification of each kind of message is done through a prefix: Posts are always public and can be either text messages or posts with files (so if you want to share a file with everyone in the chat, you do it as a post). Transferring files is always done from one client to another (privately). Text messages can be either public or private. There are three kinds of messages that can be sent: 1) Text messages.

multi chat client java

If the nickname is valid, the server answers to this specific client "OK" and also sends a message to all other clients " connected to the chat.". If the nickname is already being used, the server should send a message to the client: "ERROR, CHOOSE ANOTHER NICKNAME:" and then the user can keep trying until finding an appropriate nickname.

multi chat client java

When connecting, the cllient chooses a nickname. The multiclient chat must have the following functionalities: Other classes that the developer find necessary could be implemented but those three should be enough. There must be at least two classes: and, possibly a third class to manage which messages should be forwarded to which users (). I need someone to develop a simple multi-client chat room using Java (require socket programming and threads).













Multi chat client java