예제 #1
0
        public void raiseConnectionEvent(object[] args)
        {
            NetStream stream = ( NetStream )args[0];

            Console.WriteLine("http.server.raiseConnectionEvent()");
            Console.WriteLine("http.server.raiseConnectionEvent() - calling " + connectionCallbacks.Count + " callbacks");

            // TODO; update to use locals here - won't work for multiple outstanding requests
            req  = new HttpServerRequest(stream, Env);
            resp = new HttpServerResponse(stream, Env);
            req.ParseHeaders(raiseConnectionEventCont);
        }
예제 #2
0
		public void raiseConnectionEvent( object[] args ) {
			NetStream stream = ( NetStream )args[0];
			Console.WriteLine( "http.server.raiseConnectionEvent()" );
			Console.WriteLine( "http.server.raiseConnectionEvent() - calling " + connectionCallbacks.Count + " callbacks" );
			
			// TODO; update to use locals here - won't work for multiple outstanding requests
            req = new HttpServerRequest( stream, Env );
			resp = new HttpServerResponse( stream, Env );
			req.ParseHeaders( raiseConnectionEventCont );
		}