ZSDK_API
1.4.957
|
A class used to discover printers on an IP network. More...
#import <NetworkDiscoverer.h>
Class Methods | |
(NSArray *) | + multicastWithHops:error: |
Sends a multicast discovery packet to each adapter's subnet. | |
(NSArray *) | + multicastWithHops:andWaitForResponsesTimeout:error: |
Sends a multicast discovery packet to each adapter's subnet. | |
(NSArray *) | + subnetSearchWithRange:error: |
Sends a discovery packet to the IPs specified in the subnetRange. | |
(NSArray *) | + subnetSearchWithRange:andWaitForResponsesTimeout:error: |
Sends a discovery packet to the IPs specified in the subnetRange. | |
(NSArray *) | + directedBroadcastWithIpAddress:error: |
Sends a directed broadcast discovery packet to the subnet specified by ipAddress. | |
(NSArray *) | + directedBroadcastWithIpAddress:andWaitForResponsesTimeout:error: |
Sends a directed broadcast discovery packet to the subnet specified by ipAddress. | |
(NSArray *) | + localBroadcast: |
Sends a local broadcast discovery packet to each adapter's subnet. | |
(NSArray *) | + localBroadcastWithTimeout:error: |
Sends a local broadcast discovery packet to each adapter's subnet. | |
A class used to discover printers on an IP network.
+ (NSArray *) directedBroadcastWithIpAddress: | (NSString *) | ipAddress | |
andWaitForResponsesTimeout: | (NSInteger) | waitForResponsesTimeout | |
error: | (NSError **) | error | |
Sends a directed broadcast discovery packet to the subnet specified by ipAddress.
This method will wait up to waitForResponsesTimeout milliseconds before determining that there are no more discovery responses. If waitForResponsesTimeout is less than 0 it will be set to the default timeout. Directed broadcasts are defined by the first three subnet octets, followed by 255, such as 192.168.2.255.
This method accepts IP addresses of the form, assuming a subnet of 192.168.2:
ipAddress | The IP address of the subnet. |
waitForResponsesTimeout | Time to wait, in milliseconds, before determining that there are no more discovery responses. |
error | Will be set to the error that occured. |
DiscoveredPrinter
objects. + (NSArray *) directedBroadcastWithIpAddress: | (NSString *) | ipAddress | |
error: | (NSError **) | error | |
Sends a directed broadcast discovery packet to the subnet specified by ipAddress.
Directed broadcasts are defined by the first three subnet octets, followed by 255, such as 192.168.2.255.
This method accepts IP addresses of the form, assuming a subnet of 192.168.2:
ipAddress | The IP address of the subnet. |
error | Will be set to the error that occured. |
DiscoveredPrinter
objects. + (NSArray *) localBroadcast: | (NSError **) | error |
Sends a local broadcast discovery packet to each adapter's subnet.
error | nil if there is no error or a description of the error if one occurs. |
DiscoveredPrinter
objects. + (NSArray *) localBroadcastWithTimeout: | (NSInteger) | waitForResponsesTimeout | |
error: | (NSError **) | error | |
Sends a local broadcast discovery packet to each adapter's subnet.
This method will wait up to waitForResponsesTimeout milliseconds before determining that there are no more discovery responses. If waitForResponsesTimeout is less than 0 it will be set to the default timeout.
waitForResponsesTimeout | Time to wait, in milliseconds, before determining that there are no more discovery responses. |
error | Will be set to the error that occured. |
DiscoveredPrinter
objects. + (NSArray *) multicastWithHops: | (NSInteger) | hops | |
andWaitForResponsesTimeout: | (NSInteger) | waitForResponsesTimeout | |
error: | (NSError **) | error | |
Sends a multicast discovery packet to each adapter's subnet.
This method will wait up to waitForResponsesTimeout milliseconds before determining that there are no more discovery responses. If waitForResponsesTimeout is less than 0 it will be set to the default timeout.
hops | Number of hops. |
waitForResponsesTimeout | Time to wait, in milliseconds, before determining that there are no more discovery responses. |
error | Will be set to the error that occured. |
DiscoveredPrinter
objects. + (NSArray *) multicastWithHops: | (NSInteger) | hops | |
error: | (NSError **) | error | |
Sends a multicast discovery packet to each adapter's subnet.
hops | Number of hops. |
error | Will be set to the error that occured. |
DiscoveredPrinter
objects. + (NSArray *) subnetSearchWithRange: | (NSString *) | subnetRange | |
andWaitForResponsesTimeout: | (NSInteger) | waitForResponsesTimeout | |
error: | (NSError **) | error | |
Sends a discovery packet to the IPs specified in the subnetRange.
This method will wait up to waitForResponsesTimeout milliseconds before determining that there are no more discovery responses. If waitForResponsesTimeout is less than 0 it will be set to the default timeout. Subnet searches are defined by the first three subnet octets, followed by a range, such as 192.168.2.*
This method accepts IP addresses of the form, assuming a subnet of 192.168.2:
subnetRange | The subnet search range. |
waitForResponsesTimeout | Time to wait, in milliseconds, before determining that there are no more discovery responses. |
error | Will be set to the error that occured. |
DiscoveredPrinter
objects. + (NSArray *) subnetSearchWithRange: | (NSString *) | subnetRange | |
error: | (NSError **) | error | |
Sends a discovery packet to the IPs specified in the subnetRange.
Subnet searches are defined by the first three subnet octets, followed by a range, such as 192.168.2.*
This method accepts IP addresses of the form, assuming a subnet of 192.168.2:
subnetRange | The subnet search range. |
error | Will be set to the error that occured. |
DiscoveredPrinter
objects.