C# Class Base.USocket

Inheritance: IDisposable
Show file Open project: egametang/Egametang Class Usage Examples

Private Properties

Property Type Description
OnAccepted void
OnConnected void
OnDisconnect void
OnReceived void

Public Methods

Method Description
ConnectAsync ( string host, ushort port ) : void
Dispose ( ) : void
SendAsync ( byte data, byte channelID, PacketFlags flags = PacketFlags.Reliable ) : void
USocket ( IntPtr peerPtr, UPoller poller ) : System
USocket ( UPoller poller ) : System

Private Methods

Method Description
OnAccepted ( ) : void
OnConnected ( ) : void
OnDisconnect ( ENetEvent eNetEvent ) : void
OnReceived ( ENetEvent eNetEvent ) : void

Method Details

ConnectAsync() public method

public ConnectAsync ( string host, ushort port ) : void
host string
port ushort
return void

Dispose() public method

public Dispose ( ) : void
return void

SendAsync() public method

public SendAsync ( byte data, byte channelID, PacketFlags flags = PacketFlags.Reliable ) : void
data byte
channelID byte
flags PacketFlags
return void

USocket() public method

public USocket ( IntPtr peerPtr, UPoller poller ) : System
peerPtr System.IntPtr
poller UPoller
return System

USocket() public method

public USocket ( UPoller poller ) : System
poller UPoller
return System