Home | History | Annotate | Download | only in net

Lines Matching full:ipaddress

29 class SHILL_EXPORT IPAddress {
39 explicit IPAddress(Family family);
40 // Constructs an IPAddress object given a standard string representation of an
42 explicit IPAddress(std::string ip_string);
44 // Constructs an IPAddress object from a sockaddr_in or sockaddr_in6
47 explicit IPAddress(const sockaddr* address_struct, size_t size);
49 IPAddress(Family family, const ByteString& address);
50 IPAddress(Family family, const ByteString& address, unsigned int prefix);
51 ~IPAddress();
54 IPAddress(const IPAddress& b)
58 IPAddress& operator=(const IPAddress& b) {
88 // Returns an IPAddress of type |family| that has all the high-order |prefix|
90 static IPAddress GetAddressMaskFromPrefix(Family family, size_t prefix);
113 // An uninitialized IPAddress is empty and invalid when constructed.
125 // sockaddr_in6 structure, depending on the IPAddress family. Returns true
132 bool Equals(const IPAddress& b) const;
135 bool HasSameAddressAs(const IPAddress& b) const;
138 // of |b|. Returns an IPAddress containing the result of the operation.
141 IPAddress MaskWith(const IPAddress& b) const;
144 // of |b|. Returns an IPAddress containing the result of the operation.
147 IPAddress MergeWith(const IPAddress& b) const;
151 IPAddress GetNetworkPart() const;
155 IPAddress GetDefaultBroadcast();
157 // Tests whether this IPAddress is able to directly access the address
161 bool CanReachAddress(const IPAddress& b) const;