A utility class for discovering printers on the local network. More...
#include <NetworkDiscover.h>
Class Methods | |
| (NSArray< NSString * > *) | + getPrinterList |
| Discovers printers on the local network. | |
| (NSArray< NSString * > *) | + getPrinterListWithBrand: |
| Discovers printers of a specific brand on the local network. | |
| (NSArray< NSString * > *) | + getPrinterListWithBrand:timeout: |
| Discovers printers of a specific brand on the local network with a custom timeout. | |
A utility class for discovering printers on the local network.
This class provides methods to broadcast discovery packets and collect responses from available printers. It can return discovered printer IP addresses filtered by brand or using default discovery.
| + (NSArray< NSString * > *) getPrinterList |
Discovers printers on the local network.
Broadcasts a discovery packet and returns a list of IP addresses of all discovered printers.
| + (NSArray< NSString * > *) getPrinterListWithBrand: | (PrinterBrand) | brand |
Discovers printers of a specific brand on the local network.
Broadcasts a brand-specific discovery packet and returns a list of IP addresses of printers matching the given brand.
| brand | The printer brand to filter discovery results. |
| + (NSArray< NSString * > *) getPrinterListWithBrand: | (PrinterBrand) | brand | |
| timeout: | (NSInteger) | timeoutMs |
Discovers printers of a specific brand on the local network with a custom timeout.
Broadcasts a brand-specific discovery packet and waits up to the given timeout for responses. Returns a list of discovered printer IP addresses.
| brand | The printer brand to filter discovery results. |
| timeoutMs | The maximum time (in milliseconds) to wait for printer responses. |