Return Type | Function name | Arguments |
---|---|---|
hzEcode | hzHttpEvent::SendAjaxResult | (HttpRC,) |
Declared in file: hzHttpServer.h
Defined in file : hzHttpServer.cpp
Function Logic:
Function body:
hzEcode hzHttpEvent::SendAjaxResult (HttpRC hrc) { _hzfunc("hzHttpEvent::SendCmdResult(1)") ; hzChain Z ; hzEcode rc ; rc = _formhead(Z, hrc, HMTYPE_TXT_HTML, 0,0,false) ; if (rc != E_OK) { hzerr(rc, "Could not formulate HTTP header (sock=%d)", m_pCx->CliSocket()) ; return rc ; } if (m_pCx->SendData(Z) != E_OK) { hzerr(E_WRITEFAIL, "hzHttpEvent %p Failed to send response (size=%d, sock=%d)", this, Z.Size(), m_pCx->CliSocket()) ; return E_WRITEFAIL ; } return E_OK ; }