public interface NetworkedWorldServer extends NetworkedWorld
Modifier and Type | Method and Description |
---|---|
void |
notifyClientConnected(Byte id,
String name)
Notify when a new client is connected.
|
void |
notifyClientDisconnected(Byte id,
String name)
Notify when a client is disconnected.
|
void |
notifyClientNameChanged(Byte id,
String name)
Notify when a client changed its name.
|
void |
startServer(String name,
int port,
String messageOfTheDay)
Start the server.
|
addMessage, addMessages, addNetworkable, disconnect, getBandwidth, receiveMessages, removeNetworkable, sendMessages
void startServer(String name, int port, String messageOfTheDay)
name
- The server name.port
- The port number.messageOfTheDay
- The message of the day.LionEngineException
- If unable to start server.void notifyClientConnected(Byte id, String name)
id
- The client id.name
- The client name.void notifyClientDisconnected(Byte id, String name)
id
- The client id.name
- The client name.Copyright © 2017 Byron 3D Games Studio. All rights reserved.