#include "pch.h"
#include "framework.h"
#include "Discovery.h"
#include "NetworkDiscover.h"
#include <vector>
#include <string>
#include <windows.h>
#include <thread>
#include <mutex>
#include <sstream>
#include <iostream>
#include <atomic>
|
| std::vector< std::string > *__stdcall | GetPrinterList (Brand brand=Brand::ALL, int responseTimeoutMs=2000) |
| | 透過網路尋找印表機。
|
| |
| void __stdcall | FreePrinterList (std::vector< std::string > *pList) |
| | 釋放字串資源。
|
| |
| std::vector< std::string > *__stdcall | GetPrinterList_IPv6 (std::string PREFIX, std::string INTERFACE_NAME, int responseTimeoutMs=2000) |
| | 透過 IPv6 網路尋找印表機。
|
| |
| void __stdcall | FreePrinterList_IPv6 (std::vector< std::string > *pList) |
| | 釋放字串資源。
|
| |
◆ MAX_THREADS
◆ FreePrinterList()
| void __stdcall FreePrinterList |
( |
std::vector< std::string > * | pList | ) |
|
釋放字串資源。
- 參數
-
- 傳回值
- 無
- 程式碼
void __stdcall FreePrinterList(std::vector< std::string > *pList)
釋放字串資源。
Definition Discovery.cpp:171
◆ FreePrinterList_IPv6()
| void __stdcall FreePrinterList_IPv6 |
( |
std::vector< std::string > * | pList | ) |
|
釋放字串資源。
- 參數
-
- 傳回值
- 無
- 程式碼
void __stdcall FreePrinterList_IPv6(std::vector< std::string > *pList)
釋放字串資源。
Definition Discovery.cpp:306
◆ GetPrinterList()
| std::vector< std::string > *__stdcall GetPrinterList |
( |
Brand | brand = Brand::ALL, |
|
|
int | responseTimeoutMs = 2000 ) |
透過網路尋找印表機。
- 參數
-
- 傳回值
- std::vector<std::string>*
- 程式碼
std::vector< std::string > *__stdcall GetPrinterList(Brand brand=Brand::ALL, int responseTimeoutMs=2000)
透過網路尋找印表機。
Definition Discovery.cpp:127
◆ GetPrinterList_IPv6()
| std::vector< std::string > *__stdcall 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>* foundIPs =
GetPrinterList_IPv6(
"2001:b030:2219:c40:208:96ff:fe40:",
"", 1000);
std::vector< std::string > *__stdcall GetPrinterList_IPv6(std::string PREFIX, std::string INTERFACE_NAME, int responseTimeoutMs=2000)
透過 IPv6 網路尋找印表機。
Definition Discovery.cpp:224
◆ g_listMutex
◆ theApp