Contents Up Previous Next

wxIPV4address

Derived from

wxSockAddress

Include files

<wx/socket.h>

Members

wxIPV4address::Hostname
wxIPV4address::Hostname
wxIPV4address::Service
wxIPV4address::Service
wxIPV4address::Service
wxIPV4address::LocalHost


wxIPV4address::Hostname

bool Hostname(const wxString& hostname)

Use the specified hostname for the address.

Return value

Returns FALSE if something bad happens (invalid hostname, invalid IP address).


wxIPV4address::Hostname

wxString Hostname()

Returns the hostname which matches the IP address.


wxIPV4address::Service

bool Service(const wxString& service)

Use the specified service string for the address.

Return value

Returns FALSE if something bad happens (invalid service).


wxIPV4address::Service

bool Service(unsigned short service)

Use the specified service for the address.

Return value

Returns FALSE if something bad happens (invalid service).


wxIPV4address::Service

unsigned short Service()

Returns the current service.


wxIPV4address::LocalHost

bool LocalHost()

Initialize peer host to local host.

Return value

Returns FALSE if something bad happens.