C# Class RtspClientExample.UDPSocket

Datei anzeigen Open project: ngraziano/SharpRTSP Class Usage Examples

Public Properties

Property Type Description
control_port int
data_port int

Public Methods

Method Description
Start ( ) : void

Starts this instance.

Stop ( ) : void

Stops this instance.

UDPSocket ( String data_multicast_address, int data_multicast_port, String control_multicast_address, int control_multicast_port ) : System

Initializes a new instance of the UDPSocket class. Used with Multicast mode with the Multicast Address and Port

UDPSocket ( int start_port, int end_port ) : System

Initializes a new instance of the UDPSocket class. Creates two new UDP sockets using the start and end Port range

Protected Methods

Method Description
OnDataReceived ( Rtsp rtspChunkEventArgs ) : void

Raises the E:DataReceived event.

Private Methods

Method Description
DoWorkerJob ( System socket, int data_port ) : void

Does the video job.

Method Details

OnDataReceived() protected method

Raises the E:DataReceived event.
protected OnDataReceived ( Rtsp rtspChunkEventArgs ) : void
rtspChunkEventArgs Rtsp The instance containing the event data.
return void

Start() public method

Starts this instance.
public Start ( ) : void
return void

Stop() public method

Stops this instance.
public Stop ( ) : void
return void

UDPSocket() public method

Initializes a new instance of the UDPSocket class. Used with Multicast mode with the Multicast Address and Port
public UDPSocket ( String data_multicast_address, int data_multicast_port, String control_multicast_address, int control_multicast_port ) : System
data_multicast_address String
data_multicast_port int
control_multicast_address String
control_multicast_port int
return System

UDPSocket() public method

Initializes a new instance of the UDPSocket class. Creates two new UDP sockets using the start and end Port range
public UDPSocket ( int start_port, int end_port ) : System
start_port int
end_port int
return System

Property Details

control_port public_oe property

public int control_port
return int

data_port public_oe property

public int data_port
return int