C# Class MiniUDP.NetCore

Show file Open project: ashoulson/MiniUDP Class Usage Examples

Public Methods

Method Description
AddConnection ( IPEndPoint endpoint, string token ) : NetPeer
Connect ( IPEndPoint endpoint, string token ) : NetPeer
Host ( int port ) : void
NetCore ( string version, bool allowConnections ) : System
PollEvents ( ) : void
Stop ( int timeout = 1000 ) : void

Private Methods

Method Description
QueueNotification ( NetPeer peer, byte buffer, ushort length ) : void

Adds an outgoing notification to the controller processing queue.

SendKick ( NetPeer peer, byte reason ) : void

Immediately sends out a disconnect message to a peer.

SendPayload ( NetPeer peer, ushort sequence, byte data, ushort length ) : SocketError

Immediately sends out a payload to a peer.

Start ( ) : void

Method Details

AddConnection() public method

public AddConnection ( IPEndPoint endpoint, string token ) : NetPeer
endpoint System.Net.IPEndPoint
token string
return NetPeer

Connect() public method

public Connect ( IPEndPoint endpoint, string token ) : NetPeer
endpoint System.Net.IPEndPoint
token string
return NetPeer

Host() public method

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

NetCore() public method

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

PollEvents() public method

public PollEvents ( ) : void
return void

Stop() public method

public Stop ( int timeout = 1000 ) : void
timeout int
return void