#include "Discovery.h"
宏定义 | |
| #define | MAX_THREADS 64 |
函数 | |
| std::vector< std::string > * | GetPrinterList (Brand brand=Brand::ALL, int responseTimeoutMs=2000) |
| 透过网络寻找打印机。 | |
| void | FreePrinterList (std::vector< std::string > *pList) |
| 释放字符串资源。 | |
| std::vector< std::string > * | GetPrinterList_IPv6 (std::string PREFIX, std::string INTERFACE_NAME, int responseTimeoutMs=2000) |
| 透过 IPv6 网络寻找打印机。 | |
| void | FreePrinterList_IPv6 (std::vector< std::string > *pList) |
| 释放字符串资源。 | |
变量 | |
| std::mutex | g_listMutex |
| #define MAX_THREADS 64 |
| void FreePrinterList | ( | std::vector< std::string > * | pList | ) |
释放字符串资源。
| [in] | pList | : 字符串资源 |
| void FreePrinterList_IPv6 | ( | std::vector< std::string > * | pList | ) |
释放字符串资源。
| [in] | pList | : 字符串资源 |
| std::vector< std::string > * GetPrinterList | ( | Brand | brand = Brand::ALL, |
| int | responseTimeoutMs = 2000 ) |
透过网络寻找打印机。
| [in] | brand | : 设置打印机品牌, Brand::ALL, Brand::TSC 或 Brand::PTX |
| [in] | responseTimeoutMs | : 响应的暂停时间,单位: ms |
| std::vector< std::string > * GetPrinterList_IPv6 | ( | std::string | PREFIX, |
| std::string | INTERFACE_NAME, | ||
| int | responseTimeoutMs = 2000 ) |
透过 IPv6 网络寻找打印机。
| [in] | PREFIX | : IPv6 前缀,会以 ping IP 作法搜寻最后 16 bits 的 IP 组合 |
| [in] | INTERFACE_NAME | : 平台界面 ID |
| [in] | responseTimeoutMs | : 响应的暂停时间,单位: ms |
| std::mutex g_listMutex |