FMLiveSwitchDns Class Reference

DNS utility methods. More...

Class Methods

(FMLiveSwitchFuture< NSMutableArray * > *) + resolveWithHostname:
 Resolves a host name to an IP address. More...
 
(void) + resolveWithName:callback:state:
 Resolves a host name to an IP address. More...
 
(void) + resolveWithName:callbackBlock:state:
 Resolves a host name to an IP address. More...
 
(NSMutableArray *, id+ resolveWithNameAndCallbackBlockAndState
 Resolves a host name to an IP address. More...
 

Detailed Description

DNS utility methods.

Method Documentation

◆ resolveWithHostname:

+ (FMLiveSwitchFuture<NSMutableArray*>*) resolveWithHostname: (NSString *)  hostname

Resolves a host name to an IP address.

Parameters
hostnameThe host name to resolve.

◆ resolveWithName:callback:state:

+ (void) resolveWithName: (NSString *)  name
callback: (FMLiveSwitchAction2< NSMutableArray *, id > *)  callback
state: (id state 

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.

◆ resolveWithName:callbackBlock:state:

+ (void) resolveWithName: (NSString *)  name
callbackBlock: (void(^)(NSMutableArray *, id))  callbackBlock
state: (id state 

Resolves a host name to an IP address.

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

◆ resolveWithNameAndCallbackBlockAndState

+ (NSMutableArray*, id) resolveWithNameAndCallbackBlockAndState

Resolves a host name to an IP address.

@inlineparam name The name to resolve. @inlineparam callbackBlock The callback to invoke when resolution is complete. @inlineparam state A custom state object to pass into the callback.