public interface ConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
notifyClientConnected(java.lang.Byte id,
java.lang.String name)
Notify when a new client is connected.
|
void |
notifyClientDisconnected(java.lang.Byte id,
java.lang.String name)
Notify when a client is disconnected.
|
void |
notifyClientNameChanged(java.lang.Byte id,
java.lang.String name)
Notify when a client changed its name.
|
void |
notifyConnectionEstablished(java.lang.Byte id,
java.lang.String name)
Notify when the connection to the server is established.
|
void |
notifyConnectionTerminated(java.lang.Byte id)
Notify when the connection to the server is terminated.
|
void |
notifyMessageOfTheDay(java.lang.String messageOfTheDay)
Notify the message of the day.
|
void notifyConnectionEstablished(java.lang.Byte id, java.lang.String name)
id
- The id received.name
- The client name.void notifyMessageOfTheDay(java.lang.String messageOfTheDay)
messageOfTheDay
- The message of the day.void notifyConnectionTerminated(java.lang.Byte id)
id
- The id received.void notifyClientConnected(java.lang.Byte id, java.lang.String name)
id
- The client id.name
- The client name.void notifyClientDisconnected(java.lang.Byte id, java.lang.String name)
id
- The client id.name
- The client name.void notifyClientNameChanged(java.lang.Byte id, java.lang.String name)
id
- The client id.name
- The client new name.