diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 17:31:51 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 17:31:51 -0500 |
| commit | 2e4db7554041ecf481d3a38656fccc309e13eb5b (patch) | |
| tree | 73c064988db630f97edc18bbc3ea5fac9132483b /MediaBrowser.Common/Net/WebSocketConnection.cs | |
| parent | 1a423c43b4284848e155fc4a060ef7061b084ed8 (diff) | |
extracted http server, web socket server and udp server dependancies
Diffstat (limited to 'MediaBrowser.Common/Net/WebSocketConnection.cs')
| -rw-r--r-- | MediaBrowser.Common/Net/WebSocketConnection.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Common/Net/WebSocketConnection.cs b/MediaBrowser.Common/Net/WebSocketConnection.cs index d274d390d..ab691c823 100644 --- a/MediaBrowser.Common/Net/WebSocketConnection.cs +++ b/MediaBrowser.Common/Net/WebSocketConnection.cs @@ -21,7 +21,7 @@ namespace MediaBrowser.Common.Net /// <summary> /// The _remote end point /// </summary> - public readonly EndPoint RemoteEndPoint; + public readonly string RemoteEndPoint; /// <summary> /// The _cancellation token source @@ -45,13 +45,13 @@ namespace MediaBrowser.Common.Net /// <param name="remoteEndPoint">The remote end point.</param> /// <param name="receiveAction">The receive action.</param> /// <exception cref="System.ArgumentNullException">socket</exception> - public WebSocketConnection(IWebSocket socket, EndPoint remoteEndPoint, Action<WebSocketMessageInfo> receiveAction, ILogger logger) + public WebSocketConnection(IWebSocket socket, string remoteEndPoint, Action<WebSocketMessageInfo> receiveAction, ILogger logger) { if (socket == null) { throw new ArgumentNullException("socket"); } - if (remoteEndPoint == null) + if (string.IsNullOrEmpty(remoteEndPoint)) { throw new ArgumentNullException("remoteEndPoint"); } |
