Lines Matching refs:m_ip
38 CKadUDPKey(uint32_t WXUNUSED_UNLESS_DEBUG(zero) = 0) { wxASSERT(zero == 0); m_key = m_ip = 0; }
39 CKadUDPKey(uint32_t key, uint32_t ip) throw() { m_key = key; m_ip = ip; }
41 CKadUDPKey& operator=(const CKadUDPKey& k1) throw() { m_key = k1.m_key; m_ip = k1.m_ip; return *this; }
42 CKadUDPKey& operator=(const uint32_t WXUNUSED_UNLESS_DEBUG(zero)) { wxASSERT(zero == 0); m_key = m_ip = 0; return *this; }
43 friend bool operator==(const CKadUDPKey& k1, const CKadUDPKey& k2) throw() { return k1.GetKeyValue(k1.m_ip) == k2.GetKeyValue(k2.m_ip);}
45 uint32_t GetKeyValue(uint32_t myIP) const throw() { return (myIP == m_ip) ? m_key : 0; }
46 bool IsEmpty() const throw() { return (m_key == 0) || (m_ip == 0); }
47 void StoreToFile(CFileDataIO& file) const { file.WriteUInt32(m_key); file.WriteUInt32(m_ip); }
48 void ReadFromFile(CFileDataIO& file) { m_key = file.ReadUInt32(); m_ip = file.ReadUInt32(); }
52 uint32_t m_ip;