C# Class OpenMetaverse.UDPBase

Show file Open project: 3di/3di-viewer-rei-libs

Protected Properties

Property Type Description
remoteEndPoint System.Net.IPEndPoint

Public Methods

Method Description
AsyncBeginSend ( UDPPacketBuffer buf ) : void
Start ( ) : void

Stop ( ) : void

UDPBase ( IPEndPoint endPoint ) : System

Initialize the UDP packet handler in client mode

UDPBase ( int port ) : System

Initialize the UDP packet handler in server mode

Protected Methods

Method Description
PacketReceived ( UDPPacketBuffer buffer ) : void
PacketSent ( UDPPacketBuffer buffer, int bytesSent ) : void

Private Methods

Method Description
AsyncBeginReceive ( ) : void
AsyncEndReceive ( IAsyncResult iar ) : void
AsyncEndSend ( IAsyncResult iar ) : void

Method Details

AsyncBeginSend() public method

public AsyncBeginSend ( UDPPacketBuffer buf ) : void
buf UDPPacketBuffer
return void

PacketReceived() protected abstract method

protected abstract PacketReceived ( UDPPacketBuffer buffer ) : void
buffer UDPPacketBuffer
return void

PacketSent() protected abstract method

protected abstract PacketSent ( UDPPacketBuffer buffer, int bytesSent ) : void
buffer UDPPacketBuffer
bytesSent int
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UDPBase() public method

Initialize the UDP packet handler in client mode
public UDPBase ( IPEndPoint endPoint ) : System
endPoint System.Net.IPEndPoint Remote UDP server to connect to
return System

UDPBase() public method

Initialize the UDP packet handler in server mode
public UDPBase ( int port ) : System
port int Port to listening for incoming UDP packets on
return System

Property Details

remoteEndPoint protected property

protected IPEndPoint,System.Net remoteEndPoint
return System.Net.IPEndPoint