Méthode | Description | |
---|---|---|
IsDisconnected ( int id ) : bool | ||
SendPacket ( int clientId, GameDataPacket packet ) : void | ||
Server ( Game game, int capacity, IPAddress address ) : System |
Initialize and start the server.
|
|
SetOnlineStatus ( int id, OnlineStatus status ) : void | ||
Start ( ) : void |
Ready the server. Block if require more clients to connect.
|
|
Stop ( ) : void |
Méthode | Description | |
---|---|---|
ConnectionListener ( ) : void | ||
Server_OnDisconnected ( ServerGamer gamer ) : void | ||
_ConnectClient ( TcpClient client ) : void | ||
_ReadLoginToken ( NetworkStream stream, int waitTimeMSecs ) : LoginToken? |
public SendPacket ( int clientId, GameDataPacket packet ) : void | ||
clientId | int | |
packet | GameDataPacket | |
Résultat | void |
public Server ( Game game, int capacity, IPAddress address ) : System | ||
game | Game | |
capacity | int | |
address | IPAddress | |
Résultat | System |
public SetOnlineStatus ( int id, OnlineStatus status ) : void | ||
id | int | |
status | OnlineStatus | |
Résultat | void |