wxipaddresswxipaddress is an abstract base class for all internet protocol address objects. currently, only wxipv4address is implemented. an experimental implementation for ipv6, wxipv6address, is being developed. derived from include files <wx/socket.h> members
wxipaddress::hostname
wxipaddress::hostnamevirtual bool hostname(const wxstring& hostname) set the address to hostname, which can be a host name or an ip-style address in a format dependent on implementation. return value returns true on success, false if something goes wrong (invalid hostname or invalid ip address). virtual wxstring hostname() returns the hostname which matches the ip address.
wxipaddress::ipaddressvirtual wxstring ipaddress() returns a wxstring containing the ip address.
wxipaddress::servicevirtual bool 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). virtual 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). virtual unsigned short service() returns the current service.
wxipaddress::anyaddressvirtual bool anyaddress() internally, this is the same as setting the ip address to inaddr_any. on ipv4 implementations, 0.0.0.0 on ipv6 implementations, :: return value returns true on success, false if something went wrong.
wxipaddress::localhostvirtual bool localhost() set address to localhost. on ipv4 implementations, 127.0.0.1 on ipv6 implementations, ::1 return value returns true on success, false if something went wrong.
wxipaddress::islocalhostvirtual bool islocalhost() determines if current address is set to localhost. return value returns true if address is localhost, false if internet address.
|