private void Raise(HttpDataCallback cb, HttpParser p, MemoryStream buf, int pos, int len) { if (null != cb && -1 != pos) { cb(p, buf, pos, len); } }
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; } }
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; } }
private void Raise (HttpDataCallback cb, HttpParser p, MemoryStream buf, int pos, int len) { if (null != cb && -1 != pos) cb (p,buf,pos,len); }