SoapReachability Class Reference

This class contains methods used to determine if the web services are available. They provide a wrapper for Apple example code used to ensure the device has access to the internet.

Inherits from NSObject*

Class Methods

connectedToNetwork

Determines if the device is connected to the network.

+ (BOOL) connectedToNetwork

localIPAddress

Gets the local IP address.

+ (NSString*) localIPAddress

getIPAddressForHost:

Gets an IP address for a host.

+ (NSString*) getIPAddressForHost: (NSString*) theHost

Parameters

theHost
The host for whom an IP address is to be resolved.

hostAvailable:

Determines if a host is available.

+ (BOOL) hostAvailable: (NSString*) theHost

Parameters

theHost
The host used to determine availability.

addressFromString:address:

Gets an address from the string.

+ (BOOL)addressFromString:(NSString *)IPAddress address:(struct sockaddr_in *) address

Parameters

IPAddress
The IP address used resolve to a host.
address