[Modify] Add it

This commit is contained in:
sta 2016-06-06 14:19:41 +09:00
parent be55a3112d
commit e14c32190a

View File

@ -373,6 +373,19 @@ namespace WebSocketSharp.Net
#region Internal Methods
internal bool BindHttpListenerTo (HttpListenerContext context)
{
HttpListenerPrefix pref;
var lsnr = searchListener (context.Request.Url, out pref);
if (lsnr == null)
return false;
context.Listener = lsnr;
context.Connection.Prefix = pref;
return true;
}
internal static bool CertificateExists (int port, string certificateFolderPath)
{
if (certificateFolderPath == null || certificateFolderPath.Length == 0)