Applied patch [ 837515 ] wxIPaddress + docs patch
(Ray Gilbert) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -358,6 +358,7 @@ wxWindows provides its own classes for socket based networking.
|
||||
\begin{twocollist}\itemsep=0pt
|
||||
\twocolitem{\helpref{wxDialUpManager}{wxdialupmanager}}{Provides functions to check the status of network connection and to establish one}
|
||||
\twocolitem{\helpref{wxIPV4address}{wxipv4address}}{Represents an Internet address}
|
||||
\twocolitem{\helpref{wxIPaddress}{wxipaddress}}{Represents an Internet address}
|
||||
\twocolitem{\helpref{wxSocketBase}{wxsocketbase}}{Represents a socket base object}
|
||||
\twocolitem{\helpref{wxSocketClient}{wxsocketclient}}{Represents a socket client}
|
||||
\twocolitem{\helpref{wxSocketServer}{wxsocketserver}}{Represents a socket server}
|
||||
|
@@ -172,6 +172,7 @@
|
||||
\input ilayout.tex
|
||||
\input indlgevt.tex
|
||||
\input inputstr.tex
|
||||
\input ipaddr.tex
|
||||
\input ipvaddr.tex
|
||||
\input joystick.tex
|
||||
\input joyevent.tex
|
||||
|
146
docs/latex/wx/ipaddr.tex
Normal file
146
docs/latex/wx/ipaddr.tex
Normal file
@@ -0,0 +1,146 @@
|
||||
% ----------------------------------------------------------------------------
|
||||
% CLASS: wxIPaddress
|
||||
% ----------------------------------------------------------------------------
|
||||
\section{\class{wxIPaddress}}\label{wxipaddress}
|
||||
|
||||
wxIPaddress is an abstract base class for all internet protocol address
|
||||
objects. Currently, only \helpref{wxIPV4address}{wxipv4address}
|
||||
is implemented. An experimental implementation for IPV6, wxIPV6address,
|
||||
is being developed.
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxSockAddress}{wxsockaddress}
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
<wx/socket.h>
|
||||
|
||||
% ----------------------------------------------------------------------------
|
||||
% MEMBERS
|
||||
% ----------------------------------------------------------------------------
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
%
|
||||
% Hostname
|
||||
%
|
||||
|
||||
\membersection{wxIPaddress::Hostname}
|
||||
|
||||
\func{virtual bool}{Hostname}{\param{const wxString\&}{ hostname}}
|
||||
|
||||
Set the address to {\it hostname}, which can be a host name
|
||||
or an IP-style address in a format dependent on implementation.
|
||||
|
||||
\wxheading{Return value}
|
||||
|
||||
Returns true on success, false if something goes wrong
|
||||
(invalid hostname or invalid IP address).
|
||||
|
||||
%
|
||||
% Hostname
|
||||
%
|
||||
|
||||
\membersection{wxIPaddress::Hostname}
|
||||
|
||||
\func{virtual wxString}{Hostname}{\void}
|
||||
|
||||
Returns the hostname which matches the IP address.
|
||||
|
||||
%
|
||||
% IPAddress
|
||||
%
|
||||
|
||||
\membersection{wxIPaddress::IPAddress}
|
||||
|
||||
\func{virtual wxString}{IPAddress}{\void}
|
||||
|
||||
Returns a wxString containing the IP address.
|
||||
|
||||
%
|
||||
% Service
|
||||
%
|
||||
|
||||
\membersection{wxIPaddress::Service}
|
||||
|
||||
\func{virtual bool}{Service}{\param{const wxString\&}{ service}}
|
||||
|
||||
Set the port to that corresponding to the specified {\it service}.
|
||||
|
||||
\wxheading{Return value}
|
||||
|
||||
Returns true on success, false if something goes wrong
|
||||
(invalid service).
|
||||
|
||||
%
|
||||
% Service
|
||||
%
|
||||
|
||||
\membersection{wxIPaddress::Service}
|
||||
|
||||
\func{virtual bool}{Service}{\param{unsigned short}{ service}}
|
||||
|
||||
Set the port to that corresponding to the specified {\it service}.
|
||||
|
||||
\wxheading{Return value}
|
||||
|
||||
Returns true on success, false if something goes wrong
|
||||
(invalid service).
|
||||
|
||||
%
|
||||
% Service
|
||||
%
|
||||
|
||||
\membersection{wxIPaddress::Service}
|
||||
|
||||
\func{virtual unsigned short}{Service}{\void}
|
||||
|
||||
Returns the current service.
|
||||
|
||||
%
|
||||
% AnyAddress
|
||||
%
|
||||
|
||||
\membersection{wxIPaddress::AnyAddress}\label{wxIPaddressanyaddress}
|
||||
|
||||
\func{virtual bool}{AnyAddress}{\void}
|
||||
|
||||
Internally, this is the same as setting the IP address
|
||||
to {\bf INADDR\_ANY}.
|
||||
|
||||
On IPV4 implementations, 0.0.0.0
|
||||
|
||||
On IPV6 implementations, ::
|
||||
|
||||
\wxheading{Return value}
|
||||
|
||||
Returns true on success, false if something went wrong.
|
||||
|
||||
%
|
||||
% LocalHost
|
||||
%
|
||||
|
||||
\membersection{wxIPaddress::LocalHost}\label{wxIPaddresslocalhost}
|
||||
|
||||
\func{virtual bool}{LocalHost}{\void}
|
||||
|
||||
Set address to localhost.
|
||||
|
||||
On IPV4 implementations, 127.0.0.1
|
||||
|
||||
On IPV6 implementations, ::1
|
||||
|
||||
\wxheading{Return value}
|
||||
|
||||
Returns true on success, false if something went wrong.
|
||||
|
||||
\membersection{wxIPaddress::LocalHost}\label{wxIPaddresslocalhost}
|
||||
|
||||
\func{virtual bool}{IsLocalHost}{\void}
|
||||
|
||||
Determines if current address is set to localhost.
|
||||
|
||||
\wxheading{Return value}
|
||||
|
||||
Returns true if address is localhost, false if internet address.
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxSockAddress}{wxsockaddress}
|
||||
\helpref{wxIPaddress}{wxipaddress}
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
|
@@ -16,6 +16,7 @@ You are unlikely to need to use this class: only wxSocketBase uses it.
|
||||
\wxheading{See also}
|
||||
|
||||
\helpref{wxSocketBase}{wxsocketbase}
|
||||
\helpref{wxIPaddress}{wxipaddress}
|
||||
\helpref{wxIPV4address}{wxipv4address}
|
||||
|
||||
% ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user