C# Class RtpLib.UdpListener

Inheritance: IDisposable
Show file Open project: kthompson/RtpLib Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Dispose ( bool disposing ) : void
DropMulticastGroup ( IPAddress address ) : void
GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionLength ) : byte[]
GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName ) : object
GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
JoinMulticastGroup ( IPAddress address ) : void
JoinMulticastGroup ( IPAddress address, int ttl ) : void
Send ( UdpBuffer buffer ) : void

Sends buffered information to a specified IPEndPoint

Send ( byte buffer, EndPoint remoteEp ) : void

Sends buffered information to a specified IPEndPoint

Send ( byte buffer, SocketFlags socketFlags, EndPoint remoteEp ) : void

Sends buffered information to a specified IPEndPoint

Send ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEp ) : void

Sends buffered information to a specified IPEndPoint

SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, object optionValue ) : void
StartListening ( ) : void

Start listening for traffic on the current IPEndPoint

StopListening ( ) : void

Stops listening for traffic

UdpListener ( ) : System
UdpListener ( IPEndPoint localEp ) : System
UdpListener ( int port ) : System

Protected Methods

Method Description
BeginReceive ( ) : void
EndReceive ( IAsyncResult async ) : void

Private Methods

Method Description
CreateSocket ( ) : void
StopListeningInternal ( ) : void

Method Details

BeginReceive() protected method

protected BeginReceive ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

public Dispose ( bool disposing ) : void
disposing bool
return void

DropMulticastGroup() public method

public DropMulticastGroup ( IPAddress address ) : void
address System.Net.IPAddress
return void

EndReceive() protected method

protected EndReceive ( IAsyncResult async ) : void
async IAsyncResult
return void

GetSocketOption() public method

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionLength ) : byte[]
optionLevel SocketOptionLevel
optionName SocketOptionName
optionLength int
return byte[]

GetSocketOption() public method

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName ) : object
optionLevel SocketOptionLevel
optionName SocketOptionName
return object

GetSocketOption() public method

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue byte
return void

JoinMulticastGroup() public method

public JoinMulticastGroup ( IPAddress address ) : void
address System.Net.IPAddress
return void

JoinMulticastGroup() public method

public JoinMulticastGroup ( IPAddress address, int ttl ) : void
address System.Net.IPAddress
ttl int
return void

Send() public method

Sends buffered information to a specified IPEndPoint
public Send ( UdpBuffer buffer ) : void
buffer UdpBuffer
return void

Send() public method

Sends buffered information to a specified IPEndPoint
public Send ( byte buffer, EndPoint remoteEp ) : void
buffer byte
remoteEp System.Net.EndPoint
return void

Send() public method

Sends buffered information to a specified IPEndPoint
public Send ( byte buffer, SocketFlags socketFlags, EndPoint remoteEp ) : void
buffer byte
socketFlags SocketFlags
remoteEp System.Net.EndPoint
return void

Send() public method

Sends buffered information to a specified IPEndPoint
public Send ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEp ) : void
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEp System.Net.EndPoint
return void

SetSocketOption() public method

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue byte
return void

SetSocketOption() public method

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue int
return void

SetSocketOption() public method

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, object optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue object
return void

StartListening() public method

Start listening for traffic on the current IPEndPoint
public StartListening ( ) : void
return void

StopListening() public method

Stops listening for traffic
public StopListening ( ) : void
return void

UdpListener() public method

public UdpListener ( ) : System
return System

UdpListener() public method

public UdpListener ( IPEndPoint localEp ) : System
localEp System.Net.IPEndPoint
return System

UdpListener() public method

public UdpListener ( int port ) : System
port int
return System