Ejemplo n.º 1
0
 private void Raise(HttpDataCallback cb, HttpParser p, MemoryStream buf, int pos, int len)
 {
     if (null != cb && -1 != pos)
     {
         cb(p, buf, pos, len);
     }
 }
Ejemplo n.º 2
0
        private void Raise(HttpDataCallback cb, HttpParser p, ByteBuffer buf, int pos, int len)
        {
            if (cb == null || pos == -1)
            {
                return;
            }

            try {
                cb(p, buf, pos, len);
            } catch (Exception e) {
                Console.WriteLine(e);

                RaiseOnError(p, e.Message, buf, pos);
                return;
            }
        }
Ejemplo n.º 3
0
        private int Raise(HttpDataCallback cb, HttpParser p, ByteBuffer buf, int pos, int len)
        {
            if (cb == null || pos == -1)
                return 0;

            try {
                return cb (p,buf,pos,len);
            } catch (Exception e) {
                Console.WriteLine (e);

                RaiseOnError (p, e.Message, buf, pos);
                return -1;
            }
        }
Ejemplo n.º 4
0
		private void Raise (HttpDataCallback cb, HttpParser p, MemoryStream buf, int pos, int len)
		{
			if (null != cb && -1 != pos)
				cb (p,buf,pos,len);
		}