1999-02-17 12:18:22 -05:00
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
% CLASS: wxIPV4address
|
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxIPV4address}}\label{wxipv4address}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxSockAddress}{wxsockaddress}
|
|
|
|
|
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/socket.h>
|
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
% MEMBERS
|
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
%
|
|
|
|
% Hostname
|
|
|
|
%
|
|
|
|
|
|
|
|
\membersection{wxIPV4address::Hostname}
|
|
|
|
|
|
|
|
\func{bool}{Hostname}{\param{const wxString\&}{ hostname}}
|
|
|
|
|
2000-01-20 22:17:54 -05:00
|
|
|
Set the address to {\it hostname}, which can be a host name
|
|
|
|
or an IP-style address in dot notation (a.b.c.d)
|
1999-02-17 12:18:22 -05:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true on success, false if something goes wrong
|
2000-01-20 22:17:54 -05:00
|
|
|
(invalid hostname or invalid IP address).
|
1999-02-17 12:18:22 -05:00
|
|
|
|
|
|
|
%
|
|
|
|
% Hostname
|
|
|
|
%
|
|
|
|
|
|
|
|
\membersection{wxIPV4address::Hostname}
|
|
|
|
|
|
|
|
\func{wxString}{Hostname}{\void}
|
|
|
|
|
|
|
|
Returns the hostname which matches the IP address.
|
|
|
|
|
|
|
|
%
|
|
|
|
% Service
|
|
|
|
%
|
|
|
|
|
|
|
|
\membersection{wxIPV4address::Service}
|
|
|
|
|
|
|
|
\func{bool}{Service}{\param{const wxString\&}{ service}}
|
|
|
|
|
2000-01-20 22:17:54 -05:00
|
|
|
Set the port to that corresponding to the specified {\it service}.
|
1999-02-17 12:18:22 -05:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true on success, false if something goes wrong
|
2000-01-20 22:17:54 -05:00
|
|
|
(invalid service).
|
1999-02-17 12:18:22 -05:00
|
|
|
|
|
|
|
%
|
|
|
|
% Service
|
|
|
|
%
|
|
|
|
|
|
|
|
\membersection{wxIPV4address::Service}
|
|
|
|
|
|
|
|
\func{bool}{Service}{\param{unsigned short}{ service}}
|
|
|
|
|
2000-01-20 22:17:54 -05:00
|
|
|
Set the port to that corresponding to the specified {\it service}.
|
1999-02-17 12:18:22 -05:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true on success, false if something goes wrong
|
2000-01-20 22:17:54 -05:00
|
|
|
(invalid service).
|
1999-02-17 12:18:22 -05:00
|
|
|
|
|
|
|
%
|
|
|
|
% Service
|
|
|
|
%
|
|
|
|
|
|
|
|
\membersection{wxIPV4address::Service}
|
|
|
|
|
|
|
|
\func{unsigned short}{Service}{\void}
|
|
|
|
|
|
|
|
Returns the current service.
|
|
|
|
|
2000-01-20 22:17:54 -05:00
|
|
|
%
|
|
|
|
% AnyAddress
|
|
|
|
%
|
|
|
|
|
|
|
|
\membersection{wxIPV4address::AnyAddress}\label{wxipv4addressanyaddress}
|
|
|
|
|
|
|
|
\func{bool}{AnyAddress}{\void}
|
|
|
|
|
|
|
|
Set address to any of the addresses of the current machine. Whenever
|
|
|
|
possible, use this function instead of \helpref{wxIPV4address::LocalHost}{wxipv4addresslocalhost},
|
|
|
|
as this correctly handles multi-homed hosts and avoids other small
|
|
|
|
problems. Internally, this is the same as setting the IP address
|
|
|
|
to {\bf INADDR\_ANY}.
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true on success, false if something went wrong.
|
2000-01-20 22:17:54 -05:00
|
|
|
|
1999-02-17 12:18:22 -05:00
|
|
|
%
|
|
|
|
% LocalHost
|
|
|
|
%
|
|
|
|
|
2000-01-20 22:17:54 -05:00
|
|
|
\membersection{wxIPV4address::LocalHost}\label{wxipv4addresslocalhost}
|
1999-02-17 12:18:22 -05:00
|
|
|
|
|
|
|
\func{bool}{LocalHost}{\void}
|
|
|
|
|
2000-02-06 14:11:10 -05:00
|
|
|
Set address to localhost (127.0.0.1). Whenever possible, use the
|
2000-01-20 22:17:54 -05:00
|
|
|
\helpref{wxIPV4address::AnyAddress}{wxipv4addressanyaddress},
|
|
|
|
function instead of this one, as this will correctly handle multi-homed
|
|
|
|
hosts and avoid other small problems.
|
1999-02-17 12:18:22 -05:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true on success, false if something went wrong.
|
2000-02-06 14:11:10 -05:00
|
|
|
|