fm.liveswitch.Dns Class Referenceabstract

DNS utility methods. More...

Static Public Member Functions

static fm.liveswitch.Future< String[]> resolve (String hostname)
 Resolves a host name to an IP address. More...
 
static void resolve (String name, fm.liveswitch.IAction2< String[], Object > callback, Object state)
 Resolves a host name to an IP address. More...
 

Detailed Description

DNS utility methods.

Member Function Documentation

◆ resolve() [1/2]

static fm.liveswitch.Future<String[]> fm.liveswitch.Dns.resolve ( String  hostname)
static

Resolves a host name to an IP address.

Parameters
hostnameThe host name to resolve.

◆ resolve() [2/2]

static void fm.liveswitch.Dns.resolve ( String  name,
fm.liveswitch.IAction2< String[], Object >  callback,
Object  state 
)
static

Resolves a host name to an IP address.

Parameters
nameThe name to resolve.
callbackThe callback to invoke when resolution is complete.
stateA custom state object to pass into the callback.