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
}\label{wxipv4addresshostname
}
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).
35 \func{wxString
}{Hostname
}{\void}
37 Returns the hostname which matches the IP address.
43 \membersection{wxIPV4address::IPAddress
}\label{wxipv4addressipaddress
}
45 \func{wxString
}{IPAddress
}{\void}
47 Returns a wxString containing the IP address in dot quad (
127.0.0.1) format.
53 \membersection{wxIPV4address::Service
}\label{wxipv4addressservice
}
55 \func{bool
}{Service
}{\param{const wxString\&
}{ service
}}
57 Set the port to that corresponding to the specified
{\it service
}.
59 \wxheading{Return value
}
61 Returns true on success, false if something goes wrong
64 \func{bool
}{Service
}{\param{unsigned short
}{ service
}}
66 Set the port to that corresponding to the specified
{\it service
}.
68 \wxheading{Return value
}
70 Returns true on success, false if something goes wrong
73 \func{unsigned short
}{Service
}{\void}
75 Returns the current service.
81 \membersection{wxIPV4address::AnyAddress
}\label{wxipv4addressanyaddress
}
83 \func{bool
}{AnyAddress
}{\void}
85 Set address to any of the addresses of the current machine. Whenever
86 possible, use this function instead of
\helpref{wxIPV4address::LocalHost
}{wxipv4addresslocalhost
},
87 as this correctly handles multi-homed hosts and avoids other small
88 problems. Internally, this is the same as setting the IP address
91 \wxheading{Return value
}
93 Returns true on success, false if something went wrong.
99 \membersection{wxIPV4address::LocalHost
}\label{wxipv4addresslocalhost
}
101 \func{bool
}{LocalHost
}{\void}
103 Set address to localhost (
127.0.0.1). Whenever possible, use the
104 \helpref{wxIPV4address::AnyAddress
}{wxipv4addressanyaddress
},
105 function instead of this one, as this will correctly handle multi-homed
106 hosts and avoid other small problems.
108 \wxheading{Return value
}
110 Returns true on success, false if something went wrong.