aboutsummaryrefslogtreecommitdiffstats
path: root/api/wintun.h
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-10-29 06:21:32 +0100
committerSimon Rozman <simon@rozman.si>2020-10-31 10:41:46 +0100
commite11897e34329c59d993b471ceddfbd146ccbef1b (patch)
tree2917b3bad6809a704214a47a88374c683613902c /api/wintun.h
parentapi: move files from root to wintun folder within Zip (diff)
downloadwintun-e11897e34329c59d993b471ceddfbd146ccbef1b.tar.xz
wintun-e11897e34329c59d993b471ceddfbd146ccbef1b.zip
api: depretiate WintunIsPacketAvailable()
Spinning on the WintunReceivePacket() while it returns ERROR_NO_MORE_ITEMS achieves the same. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/wintun.h')
-rw-r--r--api/wintun.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/api/wintun.h b/api/wintun.h
index 2fe5c2e..ff79d8a 100644
--- a/api/wintun.h
+++ b/api/wintun.h
@@ -261,15 +261,6 @@ typedef void(WINAPI *WINTUN_END_SESSION_FUNC)(_In_ WINTUN_SESSION_HANDLE Session
#define WINTUN_MAX_IP_PACKET_SIZE 0xFFFF
/**
- * Peeks if there is a packet available for reading.
- *
- * @param Session Wintun session handle obtained with WintunStartSession
- *
- * @return Non-zero if there is a packet available; zero otherwise.
- */
-BOOL(WINAPI *WINTUN_IS_PACKET_AVAILABLE_FUNC)(_In_ WINTUN_SESSION_HANDLE Session);
-
-/**
* Waits for a packet to become available for reading.
*
* @param Session Wintun session handle obtained with WintunStartSession