1 % ----------------------------------------------------------------------------
3 % ----------------------------------------------------------------------------
4 \section{\class{wxIPaddress
}}\label{wxipaddress
}
6 wxIPaddress is an abstract base class for all internet protocol address
7 objects. Currently, only
\helpref{wxIPV4address
}{wxipv4address
}
8 is implemented. An experimental implementation for IPV6, wxIPV6address,
11 \wxheading{Derived from
}
13 \helpref{wxSockAddress
}{wxsockaddress
}
15 \wxheading{Include files
}
19 % ----------------------------------------------------------------------------
21 % ----------------------------------------------------------------------------
22 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxIPaddress::Hostname
}
30 \func{virtual bool
}{Hostname
}{\param{const wxString\&
}{ hostname
}}
32 Set the address to
{\it hostname
}, which can be a host name
33 or an IP-style address in a format dependent on implementation.
35 \wxheading{Return value
}
37 Returns true on success, false if something goes wrong
38 (invalid hostname or invalid IP address).
44 \membersection{wxIPaddress::Hostname
}
46 \func{virtual wxString
}{Hostname
}{\void}
48 Returns the hostname which matches the IP address.
54 \membersection{wxIPaddress::IPAddress
}
56 \func{virtual wxString
}{IPAddress
}{\void}
58 Returns a wxString containing the IP address.
64 \membersection{wxIPaddress::Service
}
66 \func{virtual bool
}{Service
}{\param{const wxString\&
}{ service
}}
68 Set the port to that corresponding to the specified
{\it service
}.
70 \wxheading{Return value
}
72 Returns true on success, false if something goes wrong
79 \membersection{wxIPaddress::Service
}
81 \func{virtual bool
}{Service
}{\param{unsigned short
}{ service
}}
83 Set the port to that corresponding to the specified
{\it service
}.
85 \wxheading{Return value
}
87 Returns true on success, false if something goes wrong
94 \membersection{wxIPaddress::Service
}
96 \func{virtual unsigned short
}{Service
}{\void}
98 Returns the current service.
104 \membersection{wxIPaddress::AnyAddress
}\label{wxIPaddressanyaddress
}
106 \func{virtual bool
}{AnyAddress
}{\void}
108 Internally, this is the same as setting the IP address
109 to
{\bf INADDR
\_ANY}.
111 On IPV4 implementations,
0.0.0.0
113 On IPV6 implementations, ::
115 \wxheading{Return value
}
117 Returns true on success, false if something went wrong.
123 \membersection{wxIPaddress::LocalHost
}\label{wxIPaddresslocalhost
}
125 \func{virtual bool
}{LocalHost
}{\void}
127 Set address to localhost.
129 On IPV4 implementations,
127.0.0.1
131 On IPV6 implementations, ::
1
133 \wxheading{Return value
}
135 Returns true on success, false if something went wrong.
137 \membersection{wxIPaddress::LocalHost
}\label{wxIPaddresslocalhost
}
139 \func{virtual bool
}{IsLocalHost
}{\void}
141 Determines if current address is set to localhost.
143 \wxheading{Return value
}
145 Returns true if address is localhost, false if internet address.