C# Class SampleCommon.Connector

Exibir arquivo Open project: ashoulson/MiniUDP

Public Methods

Method Description
Connect ( string address, string token = "" ) : NetPeer
Connector ( string version, bool allowConnections ) : System
Host ( int port ) : void
Stop ( ) : void
Update ( ) : void

Private Methods

Method Description
Connection_PeerClosed ( NetPeer peer, NetCloseReason reason, byte userKickReason, SocketError error ) : void
Connection_PeerConnected ( NetPeer peer, string token ) : void
Peer_NotificationReceived ( NetPeer peer, byte data, int dataLength ) : void
Peer_PayloadReceived ( NetPeer peer, byte data, int dataLength ) : void

Method Details

Connect() public method

public Connect ( string address, string token = "" ) : NetPeer
address string
token string
return MiniUDP.NetPeer

Connector() public method

public Connector ( string version, bool allowConnections ) : System
version string
allowConnections bool
return System

Host() public method

public Host ( int port ) : void
port int
return void

Stop() public method

public Stop ( ) : void
return void

Update() public method

public Update ( ) : void
return void