C# Class RtpLib.RtpStream

Class is used to queue up and order RTP packets
Inheritance: Stream
Afficher le fichier Open project: kthompson/RtpLib Class Usage Examples

Méthodes publiques

Méthode Description
Concat ( byte array1, byte array2 ) : byte[]
Flush ( ) : void

Clears all buffers for this stream and updates position and length accordingly

OnPacketReceived ( object sender, EventArgs e ) : void
Open ( string uri ) : RtpStream
Read ( byte buffer, int offset, int count ) : int
RtpStream ( IPEndPoint localEp ) : System
RtpStream ( int port ) : System
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
EnsureBufferOf ( long size ) : void

Ensures the buffer of a specified [size]. Throws a [TimeoutException] when it takes longer then 1000ms to fill the buffer.

RunAutoFlush ( ) : void

Internal method to run the auto flush if required.

Method Details

Concat() public static méthode

public static Concat ( byte array1, byte array2 ) : byte[]
array1 byte
array2 byte
Résultat byte[]

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Flush() public méthode

Clears all buffers for this stream and updates position and length accordingly
An I/O error occurs.
public Flush ( ) : void
Résultat void

OnPacketReceived() public méthode

public OnPacketReceived ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

Open() public static méthode

public static Open ( string uri ) : RtpStream
uri string
Résultat RtpStream

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

RtpStream() public méthode

public RtpStream ( IPEndPoint localEp ) : System
localEp System.Net.IPEndPoint
Résultat System

RtpStream() public méthode

public RtpStream ( int port ) : System
port int
Résultat System

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void