C# Class FlyingWormConsole3.LiteNetLib.NetSocket

Exibir arquivo Open project: tudouMan/TDFramework Class Usage Examples

Public Methods

Method Description
Bind ( int port, bool reuseAddress ) : bool
Close ( ) : void
NetSocket ( NetManager.OnMessageReceived onMessageReceived ) : System
SendBroadcast ( Array data, int offset, int size, int port ) : bool
SendTo ( Array data, int offset, int size, FlyingWormConsole3.LiteNetLib.NetEndPoint remoteEndPoint, int &errorCode ) : int

Private Methods

Method Description
BindSocket ( Socket socket, IPEndPoint ep ) : bool
CloseSocket ( Socket s ) : void
NetSocket ( ) : System
ReceiveLogic ( object state ) : void

Method Details

Bind() public method

public Bind ( int port, bool reuseAddress ) : bool
port int
reuseAddress bool
return bool

Close() public method

public Close ( ) : void
return void

NetSocket() public method

public NetSocket ( NetManager.OnMessageReceived onMessageReceived ) : System
onMessageReceived NetManager.OnMessageReceived
return System

SendBroadcast() public method

public SendBroadcast ( Array data, int offset, int size, int port ) : bool
data Array
offset int
size int
port int
return bool

SendTo() public method

public SendTo ( Array data, int offset, int size, FlyingWormConsole3.LiteNetLib.NetEndPoint remoteEndPoint, int &errorCode ) : int
data Array
offset int
size int
remoteEndPoint FlyingWormConsole3.LiteNetLib.NetEndPoint
errorCode int
return int