kortex-api / include /common /WindowsNetworking.h
mhussainahmad's picture
Upload 167 files
053b80b verified
#ifndef WINDOWS_NETWORKING_H
#define WINDOWS_NETWORKING_H
#ifdef _WIN32
#define _OS_WINDOWS
// Include Windows networking headers before standard C++ headers
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
// Define missing types that are used in TransportClientTcp.h
typedef int socklen_t;
// Ensure proper Windows networking initialization
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "iphlpapi.lib")
#endif // _WIN32
#endif // WINDOWS_NETWORKING_H