Refactored a few for EndPointListener.cs

This commit is contained in:
sta 2014-12-31 13:47:02 +09:00
parent d25abde628
commit d337911f9c

View File

@ -83,9 +83,9 @@ namespace WebSocketSharp.Net
#endregion #endregion
#region Public Constructors #region Internal Constructors
public EndPointListener ( internal EndPointListener (
IPAddress address, IPAddress address,
int port, int port,
bool secure, bool secure,
@ -427,11 +427,11 @@ namespace WebSocketSharp.Net
public bool BindContext (HttpListenerContext context) public bool BindContext (HttpListenerContext context)
{ {
HttpListenerPrefix pref; HttpListenerPrefix pref;
var httpl = searchListener (context.Request.Url, out pref); var listener = searchListener (context.Request.Url, out pref);
if (httpl == null) if (listener == null)
return false; return false;
context.Listener = httpl; context.Listener = listener;
context.Connection.Prefix = pref; context.Connection.Prefix = pref;
return true; return true;