Ejemplo n.º 1
0
		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);
		}
Ejemplo n.º 2
0
		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);
		}
Ejemplo n.º 3
0
		private void SendWriter(ServerAsyncEventArgs r, HttpMessageWriter writer)
		{
			r.Count = writer.Count;
			r.OffsetOffset = writer.OffsetOffset;
			r.AttachBuffer(writer.Detach());

			SendAsync(r, false);
		}