Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXEX::FXResolver Class Reference

FXResolver is designed to resolve hostnames synchronously or asychronously, so that the application can choose whether it wants to wait for resolution to finish, before returning or whether to wait for the SEL_COMMAND to be sent to indicate if the resolution has finished. More...

#include <FXResolver.h>

Inheritance diagram for FXEX::FXResolver::

FXEX::FXThread FXEX::FXRunnable FXEX::FXThreadedObject FXObject List of all members.

Detailed Description

FXResolver is designed to resolve hostnames synchronously or asychronously, so that the application can choose whether it wants to wait for resolution to finish, before returning or whether to wait for the SEL_COMMAND to be sent to indicate if the resolution has finished.

The resolver defaults to resolving IPv4 addresses, but can be made to lookup IPv6 addresses. The default socket type used in the lookup, is any type (ie stream or datagram).

The class implements a non-threaded lookup of hostnames which correspond to the current machine. This is to reduce the overhead with the lookup, since a blocking lookup should be quick for most machines that have some form of network stack.

Definition at line 44 of file FXResolver.h.