winsock compiling error, it cant find the addrinfo structures and some relating functions
You probably want to #include <ws2tcpip.h>
. Remember that before Stack Overflow, Google is your friend for this kind of questions : you will get immediate answers from MSDN !