C# Class FlyingWormConsole3.LiteNetLib.NetSocket

Afficher le fichier Open project: tudouMan/TDFramework Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

Bind() public méthode

public Bind ( int port, bool reuseAddress ) : bool
port int
reuseAddress bool
Résultat bool

Close() public méthode

public Close ( ) : void
Résultat void

NetSocket() public méthode

public NetSocket ( NetManager.OnMessageReceived onMessageReceived ) : System
onMessageReceived NetManager.OnMessageReceived
Résultat System

SendBroadcast() public méthode

public SendBroadcast ( Array data, int offset, int size, int port ) : bool
data Array
offset int
size int
port int
Résultat bool

SendTo() public méthode

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
Résultat int