UniPRT 軟體開發套件 v2.0-.a (C++ 靜態函式庫)
 
載入中...
搜尋中...
無符合項目
Discovery.cpp 檔案參考文件
#include "Discovery.h"
Discovery.cpp的包含相依圖:

定義

#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
 

定義巨集說明文件

◆ MAX_THREADS

#define MAX_THREADS   64

函式說明文件

◆ FreePrinterList()

void FreePrinterList ( std::vector< std::string > * pList)

釋放字串資源。

參數
[in]pList: 字串資源
傳回值
程式碼
FreePrinterList(pPrinterList);
void FreePrinterList(std::vector< std::string > *pList)
釋放字串資源。
Definition Discovery.cpp:85

◆ FreePrinterList_IPv6()

void FreePrinterList_IPv6 ( std::vector< std::string > * pList)

釋放字串資源。

參數
[in]pList: 字串資源
傳回值
程式碼
void FreePrinterList_IPv6(std::vector< std::string > *pList)
釋放字串資源。
Definition Discovery.cpp:225

◆ GetPrinterList()

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>*
程式碼
std::vector<std::string>* pPrinterList = GetPrinterList(Brand::ALL, 3000);
std::vector< std::string > * GetPrinterList(Brand brand=Brand::ALL, int responseTimeoutMs=2000)
透過網路尋找印表機。
Definition Discovery.cpp:43

◆ GetPrinterList_IPv6()

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::vector<std::string>*
程式碼
std::vector<std::string>* linkLocal = GetPrinterList_IPv6("fe80::208:96ff:fe40:", "eth0", 1000);
std::vector<std::string>* global = GetPrinterList_IPv6("2001:b030:2219:c40:208:96ff:fe40:", "", 1000);
std::vector< std::string > * GetPrinterList_IPv6(std::string PREFIX, std::string INTERFACE_NAME, int responseTimeoutMs=2000)
透過 IPv6 網路尋找印表機。
Definition Discovery.cpp:141

變數說明文件

◆ g_listMutex

std::mutex g_listMutex