C# Class GameBase.Network.TcpClient

Datei anzeigen Open project: dream-young-soul/soul Class Usage Examples

Public Methods

Method Description
Connect ( String ip, int port ) : void
GetConnectIP ( ) : String
GetConnectPort ( ) : int
GetSocket ( ) : Socket
ReConnect ( ) : void
SendCallback ( IAsyncResult ar ) : void
SendData ( byte data ) : void
SetSocket ( Socket s ) : void

Private Methods

Method Description
ConnectCallback ( IAsyncResult ar ) : void
ReceiveCallback ( IAsyncResult ar ) : void

Method Details

Connect() public method

public Connect ( String ip, int port ) : void
ip String
port int
return void

GetConnectIP() public method

public GetConnectIP ( ) : String
return String

GetConnectPort() public method

public GetConnectPort ( ) : int
return int

GetSocket() public method

public GetSocket ( ) : Socket
return Socket

ReConnect() public method

public ReConnect ( ) : void
return void

SendCallback() public static method

public static SendCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

SendData() public method

public SendData ( byte data ) : void
data byte
return void

SetSocket() public method

public SetSocket ( Socket s ) : void
s Socket
return void