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
}\\
14 \helpref{wxObject
}{wxobject
}
16 \wxheading{Include files
}
20 % ----------------------------------------------------------------------------
22 % ----------------------------------------------------------------------------
23 \latexignore{\rtfignore{\wxheading{Members
}}}
29 \membersection{wxIPaddress::Hostname
}\label{wxipaddresshostname
}
31 \func{virtual bool
}{Hostname
}{\param{const wxString\&
}{ hostname
}}
33 Set the address to
{\it hostname
}, which can be a host name
34 or an IP-style address in a format dependent on implementation.
36 \wxheading{Return value
}
38 Returns true on success, false if something goes wrong
39 (invalid hostname or invalid IP address).
41 \func{virtual wxString
}{Hostname
}{\void}
43 Returns the hostname which matches the IP address.
49 \membersection{wxIPaddress::IPAddress
}\label{wxipaddressipaddress
}
51 \func{virtual wxString
}{IPAddress
}{\void}
53 Returns a wxString containing the IP address.
59 \membersection{wxIPaddress::Service
}\label{wxipaddressservice
}
61 \func{virtual bool
}{Service
}{\param{const wxString\&
}{ service
}}
63 Set the port to that corresponding to the specified
{\it service
}.
65 \wxheading{Return value
}
67 Returns true on success, false if something goes wrong
70 \func{virtual bool
}{Service
}{\param{unsigned short
}{ service
}}
72 Set the port to that corresponding to the specified
{\it service
}.
74 \wxheading{Return value
}
76 Returns true on success, false if something goes wrong
79 \func{virtual unsigned short
}{Service
}{\void}
81 Returns the current service.
87 \membersection{wxIPaddress::AnyAddress
}\label{wxIPaddressanyaddress
}
89 \func{virtual bool
}{AnyAddress
}{\void}
91 Internally, this is the same as setting the IP address
94 On IPV4 implementations,
0.0.0.0
96 On IPV6 implementations, ::
98 \wxheading{Return value
}
100 Returns true on success, false if something went wrong.
106 \membersection{wxIPaddress::BroadcastAddress
}\label{wxipaddressbroadcastaddress
}
108 \func{virtual bool
}{BroadcastAddress
}{\void}
110 Internally, this is the same as setting the IP address
111 to
{\bf INADDR
\_BROADCAST}.
113 On IPV4 implementations,
255.255.255.255
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::IsLocalHost
}\label{wxipaddressislocalhost
}
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.