Hi,
I am using c-ares 1.5.1 version, build on windows. In ares_process_fd for
the 3rd parameter i am passing ARES_SOCKET_BAD, when i compiled, it is
giving ARES_SOCKET_BAD undeclared identifier.
I saw the ares.h file as below
#ifndef ares_socket_typedef
#ifdef WIN32
typedef SOCKET ares_socket_t;
#define ARES_SOCKET_BAD INVALID_SOCKET
#else
typedef int ares_socket_t;
#define ARES_SOCKET_BAD -1
#endif
#define ares_socket_typedef
#endif /* ares_socket_typedef */
my question is I could not able to find the value for INVALID_SOCKET, may i
know which header file as this or what should be the value for this.
Regards
Naveen.S
Received on 2008-05-15