Skip to content

Commit 701cbe7

Browse files
authored
Use SOCKET type in windows (#89)
1 parent 1f1b099 commit 701cbe7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

trantor/net/inner/AresResolver.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void AresResolver::ares_hostcallback_(void* data,
234234
}
235235

236236
#ifdef _WIN32
237-
int AresResolver::ares_sock_createcallback_(long long unsigned int sockfd,
237+
int AresResolver::ares_sock_createcallback_(SOCKET sockfd,
238238
int type,
239239
void* data)
240240
#else
@@ -248,7 +248,7 @@ int AresResolver::ares_sock_createcallback_(int sockfd, int type, void* data)
248248

249249
void AresResolver::ares_sock_statecallback_(void* data,
250250
#ifdef _WIN32
251-
long long unsigned int sockfd,
251+
SOCKET sockfd,
252252
#else
253253
int sockfd,
254254
#endif

trantor/net/inner/AresResolver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ class AresResolver : public Resolver,
126126
int timeouts,
127127
struct hostent* hostent);
128128
#ifdef _WIN32
129-
static int ares_sock_createcallback_(long long unsigned int sockfd,
129+
static int ares_sock_createcallback_(SOCKET sockfd,
130130
int type,
131131
void* data);
132132
#else
133133
static int ares_sock_createcallback_(int sockfd, int type, void* data);
134134
#endif
135135
static void ares_sock_statecallback_(void* data,
136136
#ifdef _WIN32
137-
long long unsigned int sockfd,
137+
SOCKET sockfd,
138138
#else
139139
int sockfd,
140140
#endif

0 commit comments

Comments
 (0)