Method | Description | |
---|---|---|
CloseAsync ( ) : System.Threading.Tasks.Task |
Asynchronously close this connection
|
|
Dispose ( ) : void |
Cleans all resources of this connection
|
|
InitializeServerAsync ( RemoteServerInfo serverEndPoint ) : Task |
Asynchronously initialize the server side of this connection
|
|
KickUserAsync ( string message ) : System.Threading.Tasks.Task |
Asyncronously kicking a client
|
|
ProxyConnection ( Socket networkSocket, ProxyServer server ) : System |
Creates a new instance of the ProxyConnection class with the remote socket of the client and the ProxyServer this connection should belong to.
|
|
StartClientListening ( ) : void |
Start waiting for client packets
|
|
StartServerListening ( ) : void |
Start waiting for server packets
|
Method | Description | |
---|---|---|
ClientConnectionLost ( object sender, |
||
ClientPacketReceived ( object sender, |
||
HandleClient ( ) : void | ||
InitializeServerAsync ( ) : Task |
||
OnConnectionLost ( ) : void | ||
ServerConnectionLost ( object sender, |
||
ServerPacketReceived ( object sender, |
||
UnregisterServer ( ) : void |
public CloseAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
public InitializeServerAsync ( RemoteServerInfo serverEndPoint ) : Task |
||
serverEndPoint | RemoteServerInfo | Information of the new server this connection should connect to. |
return | Task |
public KickUserAsync ( string message ) : System.Threading.Tasks.Task | ||
message | string | The kick message |
return | System.Threading.Tasks.Task |
public ProxyConnection ( Socket networkSocket, ProxyServer server ) : System | ||
networkSocket | Socket | The network socket of the network client |
server | ProxyServer | The proxy server this connection belongs to |
return | System |