2013-02-23 15:31:51 -07:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Common.Net
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface IWebSocketServer
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IWebSocketServer : IDisposable
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Starts the specified port number.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="portNumber">The port number.</param>
|
|
|
|
|
void Start(int portNumber);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Stops this instance.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Stop();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [web socket connected].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler<WebSocketConnectEventArgs> WebSocketConnected;
|
2013-02-26 09:10:55 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the port.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The port.</value>
|
|
|
|
|
int Port { get; }
|
2013-02-23 15:31:51 -07:00
|
|
|
|
}
|
|
|
|
|
}
|