Exemplo n.º 1
0
		static bool ServersManager_Received(ServersManager<HttpConnection> s, HttpConnection connection, ref ServerAsyncEventArgs e)
		{
			bool closeConnection = false, repeat = true;

			while (repeat)
			{
				repeat = connection.Proccess(ref e, out closeConnection);

				if (connection.IsMessageReady)
				{
					httpServer.ProcessIncomingRequest(connection);
					connection.ResetState();
				}
			}

			return !closeConnection;
		}
Exemplo n.º 2
0
		public void ProcessIncomingRequest(HttpConnection c)
		{
			if (xcapServer.IsHandled(c.HttpReader).IsHandled)
				xcapServer.HandleRequest(c, c.HttpReader, c.Content);
		}