• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 7.1.0.193
GDNetUtility.h File Reference
#import <Foundation/Foundation.h>

Classes

class  GDNetUtility
 BlackBerry Dynamics proxy infrastructure network utilities. More...
 

Typedefs

typedef void(^ GDNslookupCompletion) (NSDictionary *response, NSError *error)
 BlackBerry Dynamics name service lookup completion block. More...
 

Enumerations

enum  GDNslookupType {
  GDNslookupCNAME = 0,
  GDNslookupARECORD
}
 Enumerated constants for use with the BlackBerry Dynamics name service. More...
 
enum  GDNslookupErr {
  GDNslookupErrTimeout = 100,
  GDNslookupErrHostNotListed,
  GDNslookupErrNetworkError = 102,
  GDNslookupErrParsingResponseError = 103,
  GDNslookupErrInternalError = 104,
  GDNslookupErrParameterError = 105,
  GDNetUtilityErrCouldNotPerformService = 500
}
 

Variables

NSString *const GDNetUtilityErrorDomain
 The error domain for BlackBerry Dynamics proxy infrastructure utility errors. More...
 

Typedef Documentation

◆ GDNslookupCompletion

typedef void(^ GDNslookupCompletion) (NSDictionary *response, NSError *error)

Pass a code block of this type as the completion parameter to the nslookup function.

The block receives two parameters.

Parameters
responseNSDictionary containing the results if the lookup succeeded, or nil otherwise.
errorNSError containing a description of the error condition if the lookup failed, or nil otherwise.

Enumeration Type Documentation

◆ GDNslookupType

Use these constants to specify the type of results required for a BlackBerry Dynamics name service lookup. The type parameter of the nslookup function always takes one of these values.

Enumerator
GDNslookupCNAME 

Specify a CNAME lookup.

GDNslookupARECORD 

Specify an A record lookup.