1 % ----------------------------------------------------------------------------
3 % ----------------------------------------------------------------------------
4 \section{\class{wxIPV4address
}}\label{wxipv4address
}
6 \wxheading{Derived from
}
8 \helpref{wxSockAddress
}{wxsockaddress
}
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::Service
}
51 \func{bool
}{Service
}{\param{const wxString\&
}{ service
}}
53 Set the port to that corresponding to the specified
{\it service
}.
55 \wxheading{Return value
}
57 Returns TRUE on success, FALSE if something goes wrong
64 \membersection{wxIPV4address::Service
}
66 \func{bool
}{Service
}{\param{unsigned short
}{ service
}}
68 Set the port to that corresponding to the specified
{\it service
}.
70 \wxheading{Return value
}
72 Returns TRUE on success, FALSE if something goes wrong
79 \membersection{wxIPV4address::Service
}
81 \func{unsigned short
}{Service
}{\void}
83 Returns the current service.
89 \membersection{wxIPV4address::AnyAddress
}\label{wxipv4addressanyaddress
}
91 \func{bool
}{AnyAddress
}{\void}
93 Set address to any of the addresses of the current machine. Whenever
94 possible, use this function instead of
\helpref{wxIPV4address::LocalHost
}{wxipv4addresslocalhost
},
95 as this correctly handles multi-homed hosts and avoids other small
96 problems. Internally, this is the same as setting the IP address
99 \wxheading{Return value
}
101 Returns TRUE on success, FALSE if something went wrong.
108 \membersection{wxIPV4address::LocalHost
}\label{wxipv4addresslocalhost
}
110 \func{bool
}{LocalHost
}{\void}
112 Set address to localhost (
127.0.0.1). Whenever possible, use the
113 \helpref{wxIPV4address::AnyAddress
}{wxipv4addressanyaddress
},
114 function instead of this one, as this will correctly handle multi-homed
115 hosts and avoid other small problems.
117 \wxheading{Return value
}
119 Returns TRUE on success, FALSE if something went wrong.