[Modify] Add it
This commit is contained in:
parent
80921f0dd8
commit
1b8bb77ceb
@ -266,6 +266,20 @@ namespace WebSocketSharp.Net
|
||||
_requestBuffer = new MemoryStream ();
|
||||
}
|
||||
|
||||
private void init (int timeout)
|
||||
{
|
||||
_timeout = timeout;
|
||||
|
||||
_context = new HttpListenerContext (this);
|
||||
_currentLine = new StringBuilder (64);
|
||||
_inputState = InputState.RequestLine;
|
||||
_inputStream = null;
|
||||
_lineState = LineState.None;
|
||||
_outputStream = null;
|
||||
_position = 0;
|
||||
_requestBuffer = new MemoryStream ();
|
||||
}
|
||||
|
||||
private static void onRead (IAsyncResult asyncResult)
|
||||
{
|
||||
var conn = (HttpConnection) asyncResult.AsyncState;
|
||||
|
Loading…
Reference in New Issue
Block a user