#include "Discovery.h"
Macros | |
| #define | MAX_THREADS 64 |
Functions | |
| std::vector< std::string > * | GetPrinterList (Brand brand=Brand::ALL, int responseTimeoutMs=2000) |
| Search a printer by network. | |
| void | FreePrinterList (std::vector< std::string > *pList) |
| Release string resource. | |
| std::vector< std::string > * | GetPrinterList_IPv6 (std::string PREFIX, std::string INTERFACE_NAME, int responseTimeoutMs=2000) |
| Search a printer by IPv6 network. | |
| void | FreePrinterList_IPv6 (std::vector< std::string > *pList) |
| Release string resource. | |
Variables | |
| std::mutex | g_listMutex |
| #define MAX_THREADS 64 |
| void FreePrinterList | ( | std::vector< std::string > * | pList | ) |
Release string resource.
| [in] | pList | : a string list resource |
| void FreePrinterList_IPv6 | ( | std::vector< std::string > * | pList | ) |
Release string resource.
| [in] | pList | : a string list resource |
| std::vector< std::string > * GetPrinterList | ( | Brand | brand = Brand::ALL, |
| int | responseTimeoutMs = 2000 ) |
Search a printer by network.
| [in] | brand | : set a brand of printer, e.g. Brand::ALL, Brand::TSC or Brand::PTX |
| [in] | responseTimeoutMs | : set the timeout for printer response |
| std::vector< std::string > * GetPrinterList_IPv6 | ( | std::string | PREFIX, |
| std::string | INTERFACE_NAME, | ||
| int | responseTimeoutMs = 2000 ) |
Search a printer by IPv6 network.
| [in] | PREFIX | : IPv6 prefix, uses the ping method to search for all possible combinations of the last 16 bits of the IP address |
| [in] | INTERFACE_NAME | : platform interface ID |
| [in] | responseTimeoutMs | : set the timeout for printer response |
| std::mutex g_listMutex |