wxIPV4addressDerived from Include files <wx/socket.h> Members
wxIPV4address::Hostname
wxIPV4address::Hostnamebool Hostname(const wxString& hostname) Set the address to hostname, which can be a host name or an IP-style address in dot notation (a.b.c.d) Return value Returns true on success, false if something goes wrong (invalid hostname or invalid IP address). wxString Hostname() Returns the hostname which matches the IP address.
wxIPV4address::IPAddresswxString IPAddress() Returns a wxString containing the IP address in dot quad (127.0.0.1) format.
wxIPV4address::Servicebool Service(const wxString& service) Set the port to that corresponding to the specified service. Return value Returns true on success, false if something goes wrong (invalid service). bool Service(unsigned short service) Set the port to that corresponding to the specified service. Return value Returns true on success, false if something goes wrong (invalid service). unsigned short Service() Returns the current service.
wxIPV4address::AnyAddressbool AnyAddress() Set address to any of the addresses of the current machine. Whenever possible, use this function instead of wxIPV4address::LocalHost, as this correctly handles multi-homed hosts and avoids other small problems. Internally, this is the same as setting the IP address to INADDR_ANY. Return value Returns true on success, false if something went wrong.
wxIPV4address::LocalHostbool LocalHost() Set address to localhost (127.0.0.1). Whenever possible, use the wxIPV4address::AnyAddress, function instead of this one, as this will correctly handle multi-homed hosts and avoid other small problems. Return value Returns true on success, false if something went wrong.
|