Lines Matching refs:IPAddress
70 class IPAddress : public in_addr {
72 IPAddress() { s_addr = htonl(INADDR_ANY); }
73 IPAddress(const struct in_addr &addr) { s_addr = addr.s_addr; }
74 explicit IPAddress(UInt32 addr) { s_addr = htonl(addr); }
75 IPAddress(const char *s); // ONLY dotted-quad form - use hosts.h for name resolution
81 bool operator == (const IPAddress &other) const { return s_addr == other.s_addr; }
82 bool operator != (const IPAddress &other) const { return s_addr != other.s_addr; }
83 bool operator < (const IPAddress &other) const { return s_addr < other.s_addr; }
89 static const IPAddress &any;
100 IPSockAddress(const IPAddress &addr, IPPort port);
102 IPAddress address() const { return sin_addr; }
103 void address(IPAddress addr) { sin_addr = addr; }
117 IPSockAddress defaults(const IPAddress &defaultAddr, IPPort defaultPort = 0) const;
165 void bind(const IPAddress &addr = IPAddress::any, IPPort port = 0);
173 bool connect(const IPAddress &addr, IPPort port);
232 void open(const IPAddress &addr, IPPort port, int fdFlags = 0);
237 TCPClientSocket(const IPAddress &addr, IPPort port, int fdFlags = 0)
264 { open(IPSockAddress(IPAddress::any, port), depth); }