1 % ----------------------------------------------------------------------------
3 % ----------------------------------------------------------------------------
4 \section{\class{wxIPV4address
}}\label{wxipv4address
}
6 \wxheading{Derived from
}
8 \helpref{wxSockAddress
}{wxsockaddress
}
10 \wxheading{Include files
}
14 % ----------------------------------------------------------------------------
16 % ----------------------------------------------------------------------------
18 \latexignore{\rtfignore{\wxheading{Members
}}}
24 \membersection{wxIPV4address::Hostname
}
26 \func{bool
}{Hostname
}{\param{const wxString\&
}{ hostname
}}
28 Set the address to
{\it hostname
}, which can be a host name
29 or an IP-style address in dot notation (a.b.c.d)
31 \wxheading{Return value
}
33 Returns TRUE on success, FALSE if something goes wrong
34 (invalid hostname or invalid IP address).
40 \membersection{wxIPV4address::Hostname
}
42 \func{wxString
}{Hostname
}{\void}
44 Returns the hostname which matches the IP address.
50 \membersection{wxIPV4address::Service
}
52 \func{bool
}{Service
}{\param{const wxString\&
}{ service
}}
54 Set the port to that corresponding to the specified
{\it service
}.
56 \wxheading{Return value
}
58 Returns TRUE on success, FALSE if something goes wrong
65 \membersection{wxIPV4address::Service
}
67 \func{bool
}{Service
}{\param{unsigned short
}{ service
}}
69 Set the port to that corresponding to the specified
{\it service
}.
71 \wxheading{Return value
}
73 Returns TRUE on success, FALSE if something goes wrong
80 \membersection{wxIPV4address::Service
}
82 \func{unsigned short
}{Service
}{\void}
84 Returns the current service.
90 \membersection{wxIPV4address::AnyAddress
}\label{wxipv4addressanyaddress
}
92 \func{bool
}{AnyAddress
}{\void}
94 Set address to any of the addresses of the current machine. Whenever
95 possible, use this function instead of
\helpref{wxIPV4address::LocalHost
}{wxipv4addresslocalhost
},
96 as this correctly handles multi-homed hosts and avoids other small
97 problems. Internally, this is the same as setting the IP address
100 \wxheading{Return value
}
102 Returns TRUE on success, FALSE if something went wrong.
109 \membersection{wxIPV4address::LocalHost
}\label{wxipv4addresslocalhost
}
111 \func{bool
}{LocalHost
}{\void}
113 Set address to "localhost" (
127.0.0.1). Whenever possible, use the
114 \helpref{wxIPV4address::AnyAddress
}{wxipv4addressanyaddress
},
115 function instead of this one, as this will correctly handle multi-homed
116 hosts and avoid other small problems.
118 \wxheading{Return value
}
120 Returns TRUE on success, FALSE if something went wrong.