public IOPipeLine(Socket socket, RtmpServerOptions options, int resumeWriterThreshole = 65535) { _socket = socket; _resumeWriterThreshole = resumeWriterThreshole; _bufferProcessors = new Dictionary <ProcessState, BufferProcessor>(); Options = options; _handshakeContext = new HandshakeContext(this); }
internal void OnHandshakeSuccessful() { _handshakeContext = null; _bufferProcessors.Clear(); ChunkStreamContext = new ChunkStreamContext(this); }