Unify usage of sys/socket.h (Unix) and winsock2.h (MinGW)
examples | ||
.gitignore | ||
LICENSE | ||
main.c | ||
README.txt |
Unify usage of sys/socket.h (Unix) and winsock2.h (MinGW) Include <unisocket/main.c> and call unisocket_init() Compatible with Windows 95 OSR2 This is not a drop-in unix compatible socket header! winsock2 works slightly differently, but fully platform-independant code is possible with this header. The examples are platform-independant, and have been tested on Windows and Linux. Compile them by running examples/main.sh For further intricacies, read the example source code. Annotated portions contain important notes! Implements these things on Windows: * socklen_t * inet_pton