C# Class TcpSocket, OpenWorldGame

Show file Open project: nottvlike/OpenWorldGame Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Connect ( ) : void
Init ( string ip, int port, LuaFunction recvCallback ) : void
Send ( string str ) : void

Private Methods

Method Description
AddMessageToList ( byte data, bool isLast ) : void
ConnectSuccess ( IAsyncResult result ) : void
Destroy ( ) : void
OnApplicationQuit ( ) : void
Receive ( ) : void
SendCallback ( IAsyncResult result ) : void
UpackPackage ( Byte bytes, UInt16 index ) : void
Update ( ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( ) : void
return void

Init() public method

public Init ( string ip, int port, LuaFunction recvCallback ) : void
ip string
port int
recvCallback LuaFunction
return void

Send() public method

public Send ( string str ) : void
str string
return void