1 % ----------------------------------------------------------------------------
3 % ----------------------------------------------------------------------------
4 \section{\class{wxIPV4address
}}\label{wxipv4address
}
6 \wxheading{Derived from
}
8 \helpref{wxIPaddress
}{wxipaddress
}\\
9 \helpref{wxSockAddress
}{wxsockaddress
}\\
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
16 % ----------------------------------------------------------------------------
18 % ----------------------------------------------------------------------------
19 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxIPV4address::Hostname
}\label{wxipv4addresshostname
}
27 \func{bool
}{Hostname
}{\param{const wxString\&
}{ hostname
}}
29 Set the address to
{\it hostname
}, which can be a host name
30 or an IP-style address in dot notation (a.b.c.d)
32 \wxheading{Return value
}
34 Returns true on success, false if something goes wrong
35 (invalid hostname or invalid IP address).
37 \func{wxString
}{Hostname
}{\void}
39 Returns the hostname which matches the IP address.
45 \membersection{wxIPV4address::IPAddress
}\label{wxipv4addressipaddress
}
47 \func{wxString
}{IPAddress
}{\void}
49 Returns a wxString containing the IP address in dot quad (
127.0.0.1) format.
55 \membersection{wxIPV4address::Service
}\label{wxipv4addressservice
}
57 \func{bool
}{Service
}{\param{const wxString\&
}{ service
}}
59 Set the port to that corresponding to the specified
{\it service
}.
61 \wxheading{Return value
}
63 Returns true on success, false if something goes wrong
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
75 \func{unsigned short
}{Service
}{\void}
77 Returns the current service.
83 \membersection{wxIPV4address::AnyAddress
}\label{wxipv4addressanyaddress
}
85 \func{bool
}{AnyAddress
}{\void}
87 Set address to any of the addresses of the current machine. Whenever
88 possible, use this function instead of
\helpref{wxIPV4address::LocalHost
}{wxipv4addresslocalhost
},
89 as this correctly handles multi-homed hosts and avoids other small
90 problems. Internally, this is the same as setting the IP address
93 \wxheading{Return value
}
95 Returns true on success, false if something went wrong.
101 \membersection{wxIPV4address::LocalHost
}\label{wxipv4addresslocalhost
}
103 \func{bool
}{LocalHost
}{\void}
105 Set address to localhost (
127.0.0.1). Whenever possible, use the
106 \helpref{wxIPV4address::AnyAddress
}{wxipv4addressanyaddress
},
107 function instead of this one, as this will correctly handle multi-homed
108 hosts and avoid other small problems.
110 \wxheading{Return value
}
112 Returns true on success, false if something went wrong.