42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
namespace Inspectron.HawkEye.RTSP
|
|
{
|
|
/// <summary>
|
|
/// Interface for Transport of Rtsp (TCP, TCP+SSL,..)
|
|
/// </summary>
|
|
public interface IRtspTransport
|
|
{
|
|
/// <summary>
|
|
/// Gets the stream of the transport.
|
|
/// </summary>
|
|
/// <returns>A stream</returns>
|
|
System.IO.Stream GetStream();
|
|
|
|
/// <summary>
|
|
/// Gets the remote address.
|
|
/// </summary>
|
|
/// <value>The remote address.</value>
|
|
string RemoteAddress
|
|
{
|
|
get;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Closes this instance.
|
|
/// </summary>
|
|
void Close();
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether this <see cref="IRtspTransport"/> is connected.
|
|
/// </summary>
|
|
/// <value><c>true</c> if connected; otherwise, <c>false</c>.</value>
|
|
bool Connected { get; }
|
|
|
|
/// <summary>
|
|
/// Reconnect this instance.
|
|
/// <remarks>Must do nothing if already connected.</remarks>
|
|
/// </summary>
|
|
/// <exception cref="System.Net.Sockets.SocketException">Error during socket </exception>
|
|
void Reconnect();
|
|
}
|
|
}
|