메소드 | 설명 | |
---|---|---|
Connect ( string host, int port ) : void |
Connects to a given server.
|
|
CreateMessage ( ) : |
Creates a NetOutgoingMessage from the interal Client object.
|
|
Disconnect ( string reason = "Bye" ) : void |
Disconnects from the server.
|
|
Dispose ( ) : void |
Disposes the NetworkManager
|
|
EncodeMessage ( IMessage gameMessage ) : |
Writes an IMessage's packet ID and encodes it's data into a NetOutgoingMessage.
|
|
GetConnectionStats ( ) : |
Gets the server connection's Statistics from the internal client
|
|
GetConnectionStatus ( ) : NetConnectionStatus |
Gets the connection status from the internal client
|
|
GetPeerStats ( ) : |
Gets the client statistics from the internal client
|
|
GetPeerStatus ( ) : NetPeerStatus |
Gets the client status from the internal client
|
|
ReadMessage ( ) : |
Reads the latest message in the queue.
|
|
Recycle ( |
Recycles a message after processing by reusing it, reducing GC load
|
|
Send ( IMessage gameMessage ) : void |
Sends and encodes an IMessage to the server.
|
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes the connection and disconnects from the server
|
|
Join ( string host, int port ) : void |
Sends a message once connected to join a server officially.
|
public CreateMessage ( ) : |
||
리턴 |
public Disconnect ( string reason = "Bye" ) : void | ||
reason | string | Reason to tell the server for disconnecting. |
리턴 | void |
public EncodeMessage ( IMessage gameMessage ) : |
||
gameMessage | IMessage | |
리턴 |
public GetConnectionStats ( ) : |
||
리턴 |
public GetConnectionStatus ( ) : NetConnectionStatus | ||
리턴 | NetConnectionStatus |
public GetPeerStats ( ) : |
||
리턴 |
public ReadMessage ( ) : |
||
리턴 |
public Recycle ( |
||
im | Message to recylce | |
리턴 | void |
public Send ( IMessage gameMessage ) : void | ||
gameMessage | IMessage | IMessage to write ID and send. |
리턴 | void |