Some docs updated

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guillermo Rodriguez Garcia 2000-01-21 03:17:54 +00:00
parent 6097c3a28a
commit ec78053243
2 changed files with 38 additions and 12 deletions

View File

@ -25,11 +25,13 @@
\func{bool}{Hostname}{\param{const wxString\&}{ hostname}} \func{bool}{Hostname}{\param{const wxString\&}{ hostname}}
Use the specified {\it hostname} for the address. Set the address to {\it hostname}, which can be a host name
or an IP-style address in dot notation (a.b.c.d)
\wxheading{Return value} \wxheading{Return value}
Returns FALSE if something bad happens (invalid hostname, invalid IP address). Returns TRUE on success, FALSE if something goes wrong
(invalid hostname or invalid IP address).
% %
% Hostname % Hostname
@ -49,11 +51,12 @@ Returns the hostname which matches the IP address.
\func{bool}{Service}{\param{const wxString\&}{ service}} \func{bool}{Service}{\param{const wxString\&}{ service}}
Use the specified {\it service} string for the address. Set the port to that corresponding to the specified {\it service}.
\wxheading{Return value} \wxheading{Return value}
Returns FALSE if something bad happens (invalid service). Returns TRUE on success, FALSE if something goes wrong
(invalid service).
% %
% Service % Service
@ -63,11 +66,12 @@ Returns FALSE if something bad happens (invalid service).
\func{bool}{Service}{\param{unsigned short}{ service}} \func{bool}{Service}{\param{unsigned short}{ service}}
Use the specified {\it service} for the address. Set the port to that corresponding to the specified {\it service}.
\wxheading{Return value} \wxheading{Return value}
Returns FALSE if something bad happens (invalid service). Returns TRUE on success, FALSE if something goes wrong
(invalid service).
% %
% Service % Service
@ -80,16 +84,38 @@ Returns FALSE if something bad happens (invalid service).
Returns the current service. Returns the current service.
% %
% LocalHost % AnyAddress
% %
\membersection{wxIPV4address::LocalHost} \membersection{wxIPV4address::AnyAddress}\label{wxipv4addressanyaddress}
\func{bool}{LocalHost}{\void} \func{bool}{AnyAddress}{\void}
Initialize peer host to local host. 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} \wxheading{Return value}
Returns FALSE if something bad happens. Returns TRUE on success, FALSE if something went wrong.
%
% LocalHost
%
\membersection{wxIPV4address::LocalHost}\label{wxipv4addresslocalhost}
\func{bool}{LocalHost}{\void}
Set address to "localhost" (127.0.0.1). Whenever possible, use the
\helpref{wxIPV4address::AnyAddress}{wxipv4addressanyaddress},
function instead of this one, as this will correctly handle multi-homed
hosts and avoid other small problems.
\wxheading{Return value}
Returns TRUE on success, FALSE if something went wrong.

View File

@ -16,7 +16,7 @@ You are unlikely to need to use this class: only wxSocketBase uses it.
\wxheading{See also} \wxheading{See also}
\helpref{wxSocketBase}{wxsocketbase} \helpref{wxSocketBase}{wxsocketbase}
%\helpref{wxIPV4address}{wxipv4address}\\ \helpref{wxIPV4address}{wxipv4address}
%\helpref{wxIPV6address}{wxipv6address}\\ %\helpref{wxIPV6address}{wxipv6address}\\
%\helpref{wxunixaddress}{wxunixaddress} %\helpref{wxunixaddress}{wxunixaddress}