libwsk
About
libwsk is a wrapper for the WSK (Winsock-Kernel) interface. With libwsk, kernel-mode software modules can perform network I/O operations using the same socket programming concepts and interface that are supported by user-mode Winsock2.
Build and used
IDE๏ผVisual Studio 2019 or higher
if target OS is Windows7, please set these.
libwsk property pages -> Driver Settings -> Target OS Version = Windows 7 libwsk Property pages -> Driver Settings -> Target Platform = Desktop
git clone --recurse-submodules https://github.com/MiroKaku/libwsk.git
- Open the
msvc/libwsk.sln
and build it. - Include
libwsk.lib
to your project. referunittest
.
Supported progress
BSD sockets | WSA (Windows Sockets API) | WSK (Windows Sockets Kernel) | State |
---|---|---|---|
- | WSKStartup | โ | |
- | WSKCleanup | โ | |
socket | WSKSocket | โ | |
closesocket | WSKCloseSocket | โ | |
bind | - | WSKBind | โ |
listen | - | WSKListen | โ |
connect | WSKConnect | โ | |
shutdown | WSKDisconnect | โ | |
accept | WSKAccept | โ | |
send | WSKSend | โ | |
recv | WSKRecv | โ | |
sendto | WSKSendTo | โ | |
recvfrom | WSKRecvFrom | โ | |
ioctlsocket | WSKIoctl | โ | |
setsockopt | - | WSKSetSocketOpt | โ |
getsockopt | - | WSKGetSocketOpt | โ |
getaddrinfo | WSKGetAddrInfo | โ | |
freeaddrinfo | WSKFreeAddrInfo | โ | |
getnameinfo | WSKGetNameInfo | โ | |
inet_ntoa | WSKAddressToString | โ | |
inet_addr | WSKStringToAddress | โ | |
- | WSKCreateEvent | โ | |
- | WSKGetOverlappedResult | โ | |
... | ... | ... | - |