void IHttpServer.SendResponse(BaseConnection c, HttpMessageWriter writer) { var r = EventArgsManager.Get(); r.CopyAddressesFrom(c); r.Count = writer.Count; r.OffsetOffset = writer.OffsetOffset; r.AttachBuffer(writer.Detach()); SendAsync(r); }
protected void SendResponse(BaseConnection c, HttpMessageWriter writer, int agentIndex) { var r = EventArgsManager.Get(); r.CopyAddressesFrom(c); r.Count = writer.Count; r.OffsetOffset = writer.OffsetOffset; r.AttachBuffer(writer.Detach()); SendAsync(r, agentIndex); }
private void SendWriter(ServerAsyncEventArgs r, HttpMessageWriter writer) { r.Count = writer.Count; r.OffsetOffset = writer.OffsetOffset; r.AttachBuffer(writer.Detach()); SendAsync(r, false); }