C# Class GameBase.Network.TcpServer

显示文件 Open project: dream-young-soul/soul Class Usage Examples

Public Properties

Property Type Description
m_Socket Socket

Public Methods

Method Description
AcceptCallback ( IAsyncResult ar ) : void
Dispose ( ) : void
ReadCallBack ( IAsyncResult ar ) : void
SendCallback ( IAsyncResult ar ) : void
SendData ( Socket s, byte data ) : bool
Start ( String sBindIP, int nPort ) : bool
Stop ( ) : void
TcpServer ( ) : System

Method Details

AcceptCallback() public static method

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

Dispose() public method

public Dispose ( ) : void
return void

ReadCallBack() public static method

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

SendCallback() public static method

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

SendData() public method

public SendData ( Socket s, byte data ) : bool
s Socket
data byte
return bool

Start() public method

public Start ( String sBindIP, int nPort ) : bool
sBindIP String
nPort int
return bool

Stop() public method

public Stop ( ) : void
return void

TcpServer() public method

public TcpServer ( ) : System
return System

Property Details

m_Socket public_oe property

public Socket m_Socket
return Socket