Return TypeFunction nameArguments
hzEcodehzHttpEvent::SendRawChain(HttpRC,hzMimetype,const hzChain&,unsigned int,bool,)

Declared in file: hzHttpServer.h
Defined in file : hzHttpServer.cpp

Function Logic:

0:START 1:hzChain::Size hzHttpEvent::_formhead rc 2:rc!=E_OK 3:Return hzerr(rc,Could not formulate HTTP header (sock=%d),m_pCx->CliSocket()) 4:m_pCx->SendData(Z,Data)!=E_OK 5:hzChain::Size hzChain::Size hzIpConnex::CliSocket 6:Return E_WRITEFAIL 7:Return E_OK

Function body:

hzEcode hzHttpEvent::SendRawChain (HttpRC hrc, hzMimetype type, const hzChain& Data, unsigned int nExpires, bool bZip)
{
   _hzfunc("hzHttpEvent::SendRawChain") ;
   hzChain Z ;
   hzEcode rc ;
   rc = _formhead(Z, hrc, type, Data.Size(), nExpires, bZip) ;
   if (rc != E_OK)
       return hzerr(rc, "Could not formulate HTTP header (sock=%d)", m_pCx->CliSocket()) ;
   if (m_pCx->SendData(Z, Data) != E_OK)
   {
       hzerr(E_WRITEFAIL, "Event %p Failed to send response (size=%d + %d, sock=%d)", this, Z.Size(), Data.Size(), m_pCx->CliSocket()) ;
       return E_WRITEFAIL ;
   }
   return E_OK ;
}