Refactored Ext.cs

This commit is contained in:
sta
2014-08-19 14:14:59 +09:00
parent 2355d88a21
commit e7aa1a469d
5 changed files with 142 additions and 143 deletions

View File

@@ -410,7 +410,7 @@ namespace WebSocketSharp.Server
}
_services.Stop (
((ushort) CloseStatusCode.ServerError).ToByteArrayInternally (ByteOrder.Big), true);
((ushort) CloseStatusCode.ServerError).InternalToByteArray (ByteOrder.Big), true);
_listener.Abort ();
_state = ServerState.Stop;

View File

@@ -466,7 +466,7 @@ namespace WebSocketSharp.Server
_listener.Stop ();
_services.Stop (
((ushort) CloseStatusCode.ServerError).ToByteArrayInternally (ByteOrder.Big), true);
((ushort) CloseStatusCode.ServerError).InternalToByteArray (ByteOrder.Big), true);
_state = ServerState.Stop;
}

View File

@@ -295,7 +295,7 @@ namespace WebSocketSharp.Server
if (host.Sessions.State == ServerState.Start)
host.Sessions.Stop (
((ushort) CloseStatusCode.Away).ToByteArrayInternally (ByteOrder.Big), true);
((ushort) CloseStatusCode.Away).InternalToByteArray (ByteOrder.Big), true);
return true;
}