xiaobfly / libwsk

The Kernel-Mode Winsock library, supporting TCP, UDP and Unix sockets (DGRAM and STREAM).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libwsk

Actions Status LICENSE Windows Visual Studio

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

  1. git clone https://github.com/MiroKaku/libwsk.git
  2. Open the msvc/libwsk.sln and build it.
  3. include libwsk.lib to your project. refer unittest

Supported progress

BSD sockets WSA (Windows Sockets API) WSK (Windows Sockets Kernel) State
- WSAStartup WSKStartup
- WSACleanup WSKCleanup
socket WSASocket WSKSocket -
bind - WSKBind -
listen - WSKListen -
connect WSAConnect WSKConnect -
accept WSAAccept WSKAccept -
send WSASend WSKSend -
recv WSARecv WSKRecv -
sendto WSASendTo WSKSendTo -
recvfrom WSARecvFrom WSKRecvFrom -
... ... ... -

Reference

About

The Kernel-Mode Winsock library, supporting TCP, UDP and Unix sockets (DGRAM and STREAM).

License:MIT License


Languages

Language:C++ 98.5%Language:C 1.1%Language:Batchfile 0.4%