Метод | Описание | |
---|---|---|
DisconnectPeer ( |
Disconnect peer from server
|
|
GetPeers ( ) : LiteNetLib.NetPeer[] |
Get copy of current connected peers
|
|
NetServer ( INetEventListener listener, int maxClients, string key ) : System |
Creates server object
|
|
SendToClients ( |
||
SendToClients ( |
||
SendToClients ( byte data, SendOptions options ) : void | ||
SendToClients ( byte data, SendOptions options, |
||
SendToClients ( byte data, int start, int length, SendOptions options ) : void | ||
SendToClients ( byte data, int start, int length, SendOptions options, |
||
Stop ( ) : void |
Метод | Описание | |
---|---|---|
PostProcessEvent ( int deltaTime ) : void | ||
ProcessReceiveError ( int socketErrorCode ) : void | ||
ReceiveFromSocket ( byte reusableBuffer, int count, |
Метод | Описание | |
---|---|---|
ClearPeers ( ) : void | ||
ProcessSendError ( |
||
ReceiveFromPeer ( |
||
RemovePeer ( |
||
SendConnectAccept ( |
public DisconnectPeer ( |
||
peer | peer to disconnect | |
Результат | void |
public GetPeers ( ) : LiteNetLib.NetPeer[] | ||
Результат | LiteNetLib.NetPeer[] |
public NetServer ( INetEventListener listener, int maxClients, string key ) : System | ||
listener | INetEventListener | Listener of server events |
maxClients | int | Maximum clients |
key | string | Application key to identify connecting clients |
Результат | System |
protected PostProcessEvent ( int deltaTime ) : void | ||
deltaTime | int | |
Результат | void |
protected ProcessReceiveError ( int socketErrorCode ) : void | ||
socketErrorCode | int | |
Результат | void |
protected ReceiveFromSocket ( byte reusableBuffer, int count, |
||
reusableBuffer | byte | |
count | int | |
remoteEndPoint | ||
Результат | void |
public SendToClients ( |
||
writer | ||
options | SendOptions | |
Результат | void |
public SendToClients ( |
||
writer | ||
options | SendOptions | |
excludePeer | ||
Результат | void |
public SendToClients ( byte data, SendOptions options ) : void | ||
data | byte | |
options | SendOptions | |
Результат | void |
public SendToClients ( byte data, SendOptions options, |
||
data | byte | |
options | SendOptions | |
excludePeer | ||
Результат | void |
public SendToClients ( byte data, int start, int length, SendOptions options ) : void | ||
data | byte | |
start | int | |
length | int | |
options | SendOptions | |
Результат | void |
public SendToClients ( byte data, int start, int length, SendOptions options, |
||
data | byte | |
start | int | |
length | int | |
options | SendOptions | |
excludePeer | ||
Результат | void |