//------------------------------------------------------------------------ // CTestFilter::MHFRunError // See MHTTPFilterBase::MHFRunError //------------------------------------------------------------------------ // TInt CTestFilter::MHFRunError(TInt /*aError*/, RHTTPTransaction aTransaction, const THTTPEvent& ) { TInt error = 0; // map aError to global error message // pass the errorcode forward THTTPEvent httpEvent(error); TRAP_IGNORE(aTransaction.SendEventL(httpEvent, THTTPEvent::EIncoming, THTTPFilterHandle::ECurrentFilter )); return KErrNone; }
/* Respond to an IO event. This wraps the standard httpEvent() call. */ static void httpIOEvent(HttpConn *conn, MprEvent *event) { EjsHttp *hp; Ejs *ejs; assert(conn->async); hp = conn->context; ejs = hp->ejs; httpEvent(conn, event); if (event->mask & MPR_WRITABLE) { if (hp->data) { writeHttpData(ejs, hp); } } }