Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
winsock2.h
✓ #include <winsock2.h>
Initialize WinSock2, create a socket, and clean up
#include <winsock2.h>
#include <iostream>
int main() {
WSADATA wsaData;
if (WSAStartup(MAKEWORD(2,2), &wsaData) != 0) {
std::cerr << "WSAStartup failed" << std::endl;
return 1;
}
SOCKET sock = socket(AF_INET, SOCK_STREAM, 0);
closesocket(sock);
WSACleanup();
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.