Return Type | Function name | Arguments |
---|---|---|
hzTcpCode | HandleHttpMsg | (hzChain&,hzIpConnex*,) |
Declared and defined in file: hzIpServer.cpp
Function Logic:
Function body:
hzTcpCode HandleHttpMsg (hzChain& Input, hzIpConnex* pCx) { _hzfunc("HandleHttpMsg") ; hzTcpCode (*fnOnHttpEvent)(hzHttpEvent*) ; hzHttpEvent* pE ; hzTcpCode tcp_rc ; if (!pCx->m_pEventHdl) hzexit(E_MEMORY, "Could not allocate a HTTP Event") ; pE = (hzHttpEvent*) pCx->m_pEventHdl ; if (pCx->MsgComplete()) pCx->m_pEventHdl = 0; if (pE->ProcessEvent(Input) != E_OK) { pCx->GetLogger()->Log("Deleting failed HTTP event input\n") ; Input.Clear() ; return TCP_TERMINATE ; } if (!pE->MsgComplete()) { pCx->m_pEventHdl = pE ; pCx->ExpectSize(pE->ExpectSize()) ; return TCP_INCOMPLETE ; } if (pCx->m_appFn) { fnOnHttpEvent = (hzTcpCode(*)(hzHttpEvent*)) pCx->m_appFn ; tcp_rc = fnOnHttpEvent(pE) ; } Input.Clear() ; return tcp_rc ; }