Return Type | Function name | Arguments |
---|---|---|
hzEcode | hzIpServer::Activate | (void) |
Declared in file: hzIpServer.h
Defined in file : hzIpServer.cpp
Function Logic:
Function body:
hzEcode hzIpServer::Activate (void) { _hzfunc("hzIpServer::Activate") ; if (m_bActive) { hzerr(E_INITDUP, "All ports already active") ; return E_INITDUP ; } hzList<hzIpListen*>::Iter I ; hzIpListen* pLS ; for (I = m_LS ; I.Valid() ; I++) { pLS = I.Element() ; if (pLS->Activate() != E_OK) { hzerr(E_INITFAIL, "Could not activate listening port (sock %d)", pLS->GetPort()) ; return E_INITFAIL ; } } m_bActive = true ; return E_OK ; }