]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/ipvaddr.tex
documented wxWindow::GetFont change
[wxWidgets.git] / docs / latex / wx / ipvaddr.tex
CommitLineData
ca5c8b2d
JS
1% ----------------------------------------------------------------------------
2% CLASS: wxIPV4address
3% ----------------------------------------------------------------------------
4\section{\class{wxIPV4address}}\label{wxipv4address}
5
6\wxheading{Derived from}
7
be4bd463 8\helpref{wxIPaddress}{wxipaddress}
ca5c8b2d
JS
9
10\wxheading{Include files}
11
12<wx/socket.h>
13
14% ----------------------------------------------------------------------------
15% MEMBERS
16% ----------------------------------------------------------------------------
ca5c8b2d
JS
17\latexignore{\rtfignore{\wxheading{Members}}}
18
19%
20% Hostname
21%
22
23\membersection{wxIPV4address::Hostname}
24
25\func{bool}{Hostname}{\param{const wxString\&}{ hostname}}
26
ec780532
GRG
27Set the address to {\it hostname}, which can be a host name
28or an IP-style address in dot notation (a.b.c.d)
ca5c8b2d
JS
29
30\wxheading{Return value}
31
cc81d32f 32Returns true on success, false if something goes wrong
ec780532 33(invalid hostname or invalid IP address).
ca5c8b2d
JS
34
35%
36% Hostname
37%
38
39\membersection{wxIPV4address::Hostname}
40
41\func{wxString}{Hostname}{\void}
42
43Returns the hostname which matches the IP address.
44
d9552598
VZ
45%
46% IPAddress
47%
48
49\membersection{wxIPV4address::IPAddress}
50
51\func{wxString}{IPAddress}{\void}
52
53Returns a wxString containing the IP address in dot quad (127.0.0.1) format.
54
ca5c8b2d
JS
55%
56% Service
57%
58
59\membersection{wxIPV4address::Service}
60
61\func{bool}{Service}{\param{const wxString\&}{ service}}
62
ec780532 63Set the port to that corresponding to the specified {\it service}.
ca5c8b2d
JS
64
65\wxheading{Return value}
66
cc81d32f 67Returns true on success, false if something goes wrong
ec780532 68(invalid service).
ca5c8b2d
JS
69
70%
71% Service
72%
73
74\membersection{wxIPV4address::Service}
75
76\func{bool}{Service}{\param{unsigned short}{ service}}
77
ec780532 78Set the port to that corresponding to the specified {\it service}.
ca5c8b2d
JS
79
80\wxheading{Return value}
81
cc81d32f 82Returns true on success, false if something goes wrong
ec780532 83(invalid service).
ca5c8b2d
JS
84
85%
86% Service
87%
88
89\membersection{wxIPV4address::Service}
90
91\func{unsigned short}{Service}{\void}
92
93Returns the current service.
94
ec780532
GRG
95%
96% AnyAddress
97%
98
99\membersection{wxIPV4address::AnyAddress}\label{wxipv4addressanyaddress}
100
101\func{bool}{AnyAddress}{\void}
102
103Set address to any of the addresses of the current machine. Whenever
104possible, use this function instead of \helpref{wxIPV4address::LocalHost}{wxipv4addresslocalhost},
105as this correctly handles multi-homed hosts and avoids other small
106problems. Internally, this is the same as setting the IP address
107to {\bf INADDR\_ANY}.
108
109\wxheading{Return value}
110
cc81d32f 111Returns true on success, false if something went wrong.
ec780532 112
ca5c8b2d
JS
113%
114% LocalHost
115%
116
ec780532 117\membersection{wxIPV4address::LocalHost}\label{wxipv4addresslocalhost}
ca5c8b2d
JS
118
119\func{bool}{LocalHost}{\void}
120
457e6c54 121Set address to localhost (127.0.0.1). Whenever possible, use the
ec780532
GRG
122\helpref{wxIPV4address::AnyAddress}{wxipv4addressanyaddress},
123function instead of this one, as this will correctly handle multi-homed
124hosts and avoid other small problems.
ca5c8b2d
JS
125
126\wxheading{Return value}
127
cc81d32f 128Returns true on success, false if something went wrong.
457e6c54 129