typedef struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
size_t ai_addrlen;
char* ai_canonname;
struct sockaddr* ai_addr;
struct addrinfo* ai_next;
} ADDRINFOA,
*PADDRINFOA;
i pasted theabove in the code and it worked...
also i included this definition
#define AI_PASSIVE 1 which you can find in the header file of
ws2tcpip.h