Property | Type | Description | |
---|---|---|---|
MaxConnectAttempts | int | ||
PeerToPeerMode | bool | ||
ReconnectDelay | int |
Method | Description | |
---|---|---|
Connect ( |
||
Connect ( string address, int port ) : void |
Connect to NetServer or NetClient with PeerToPeerMode
|
|
Disconnect ( ) : void |
Disconnect from NetServer
|
|
NetClient ( INetEventListener listener, string connectKey ) : System | ||
Stop ( ) : void |
Force closes connection and stop all threads.
|
Method | Description | |
---|---|---|
PostProcessEvent ( int deltaTime ) : void | ||
ProcessReceiveError ( int socketErrorCode ) : void | ||
ReceiveFromSocket ( byte reusableBuffer, int count, |
Method | Description | |
---|---|---|
CloseConnection ( bool force, DisconnectReason reason, int socketErrorCode ) : void | ||
ProcessConnectAccept ( ) : void | ||
ProcessSendError ( |
||
ReceiveFromPeer ( |
||
SendConnectRequest ( ) : void |
public Connect ( string address, int port ) : void | ||
address | string | Server IP or hostname |
port | int | Server Port |
return | void |
public NetClient ( INetEventListener listener, string connectKey ) : System | ||
listener | INetEventListener | |
connectKey | string | |
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 |