Return Type | Function name | Arguments |
---|---|---|
bool | hzUrl::operator== | (const hzUrl&,) |
Declared in file: hzUrl.h
Defined in file : hzUrl.cpp
Function Logic:
Function body:
bool hzUrl::operator== (const hzUrl& testUrl) { if (m_addr == testUrl.m_addr) return true ; if (!m_addr && testUrl.m_addr) return false ; if (m_addr && !testUrl.m_addr) return false ; _url_space* thisCtl ; _url_space* suppCtl ; thisCtl = (_url_space*) g_ssrInet.Xlate(m_addr) ; suppCtl = (_url_space*) g_ssrInet.Xlate(testUrl.m_addr) ; if (thisCtl->m_lenRes != suppCtl->m_lenRes) return false ; if (thisCtl->m_port != suppCtl->m_port) return false ; if (thisCtl->m_lenProt != suppCtl->m_lenProt) return false ; if (thisCtl->m_lenDom != suppCtl->m_lenDom) return false ; if (thisCtl->m_lenPort != suppCtl->m_lenPort) return false ; return strcmp(thisCtl->m_data, suppCtl->m_data) ? false : true ; }