Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public Server ( Game game, int capacity, IPAddress address ) : System | ||
game | Game | |
capacity | int | |
address | IPAddress | |
Результат | System |
public SetOnlineStatus ( int id, OnlineStatus status ) : void | ||
id | int | |
status | OnlineStatus | |
Результат | void |