#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 |