1 % ----------------------------------------------------------------------------
3 % ----------------------------------------------------------------------------
4 \section{\class{wxIPV4address
}}\label{wxipv4address
}
6 \wxheading{Derived from
}
8 \helpref{wxIPaddress
}{wxipaddress
}
10 \wxheading{Include files
}
14 % ----------------------------------------------------------------------------
16 % ----------------------------------------------------------------------------
17 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxIPV4address::Hostname
}
25 \func{bool
}{Hostname
}{\param{const wxString\&
}{ hostname
}}
27 Set the address to
{\it hostname
}, which can be a host name
28 or an IP-style address in dot notation (a.b.c.d)
30 \wxheading{Return value
}
32 Returns true on success, false if something goes wrong
33 (invalid hostname or invalid IP address).
39 \membersection{wxIPV4address::Hostname
}
41 \func{wxString
}{Hostname
}{\void}
43 Returns the hostname which matches the IP address.
49 \membersection{wxIPV4address::IPAddress
}
51 \func{wxString
}{IPAddress
}{\void}
53 Returns a wxString containing the IP address in dot quad (
127.0.0.1) format.
59 \membersection{wxIPV4address::Service
}
61 \func{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
74 \membersection{wxIPV4address::Service
}
76 \func{bool
}{Service
}{\param{unsigned short
}{ service
}}
78 Set the port to that corresponding to the specified
{\it service
}.
80 \wxheading{Return value
}
82 Returns true on success, false if something goes wrong
89 \membersection{wxIPV4address::Service
}
91 \func{unsigned short
}{Service
}{\void}
93 Returns the current service.
99 \membersection{wxIPV4address::AnyAddress
}\label{wxipv4addressanyaddress
}
101 \func{bool
}{AnyAddress
}{\void}
103 Set address to any of the addresses of the current machine. Whenever
104 possible, use this function instead of
\helpref{wxIPV4address::LocalHost
}{wxipv4addresslocalhost
},
105 as this correctly handles multi-homed hosts and avoids other small
106 problems. Internally, this is the same as setting the IP address
107 to
{\bf INADDR
\_ANY}.
109 \wxheading{Return value
}
111 Returns true on success, false if something went wrong.
117 \membersection{wxIPV4address::LocalHost
}\label{wxipv4addresslocalhost
}
119 \func{bool
}{LocalHost
}{\void}
121 Set address to localhost (
127.0.0.1). Whenever possible, use the
122 \helpref{wxIPV4address::AnyAddress
}{wxipv4addressanyaddress
},
123 function instead of this one, as this will correctly handle multi-homed
124 hosts and avoid other small problems.
126 \wxheading{Return value
}
128 Returns true on success, false if something went wrong.