Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
PostProcessEvent ( int deltaTime ) : void | ||
ProcessReceiveError ( int socketErrorCode ) : void | ||
ReceiveFromSocket ( byte reusableBuffer, int count, |
Method | Description | |
---|---|---|
ClearPeers ( ) : void | ||
ProcessSendError ( |
||
ReceiveFromPeer ( |
||
RemovePeer ( |
||
SendConnectAccept ( |
public DisconnectPeer ( |
||
peer | peer to disconnect | |
return | void |
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 |
return | System |
protected PostProcessEvent ( int deltaTime ) : void | ||
deltaTime | int | |
return | void |
protected ProcessReceiveError ( int socketErrorCode ) : void | ||
socketErrorCode | int | |
return | void |
protected ReceiveFromSocket ( byte reusableBuffer, int count, |
||
reusableBuffer | byte | |
count | int | |
remoteEndPoint | ||
return | void |
public SendToClients ( |
||
writer | ||
options | SendOptions | |
return | void |
public SendToClients ( |
||
writer | ||
options | SendOptions | |
excludePeer | ||
return | void |
public SendToClients ( byte data, SendOptions options ) : void | ||
data | byte | |
options | SendOptions | |
return | void |
public SendToClients ( byte data, SendOptions options, |
||
data | byte | |
options | SendOptions | |
excludePeer | ||
return | void |
public SendToClients ( byte data, int start, int length, SendOptions options ) : void | ||
data | byte | |
start | int | |
length | int | |
options | SendOptions | |
return | void |
public SendToClients ( byte data, int start, int length, SendOptions options, |
||
data | byte | |
start | int | |
length | int | |
options | SendOptions | |
excludePeer | ||
return | void |