File size: 506 Bytes
053b80b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#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
|