summaryrefslogtreecommitdiff
path: root/setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-05-30 12:58:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-05-30 12:58:47 +0000
commit8c35c65fc7c746d5803a48151e82e0435c20a84c (patch)
tree1292033b628847625ec96fbf2f431cc1c2c8895e /setup.h
parent557aad7b0271e96ab76a9eaf59dab3f52289ba0e (diff)
downloadc-ares-8c35c65fc7c746d5803a48151e82e0435c20a84c.tar.gz
c-ares-8c35c65fc7c746d5803a48151e82e0435c20a84c.tar.bz2
c-ares-8c35c65fc7c746d5803a48151e82e0435c20a84c.zip
added ares_process_fd() to allow applications to ask for processing on
specific sockets and thus avoiding select() and associated functions/macros. This function will be used by upcoming libcurl releases for this very reason. It also made me export the ares_socket_t type in the public ares.h header file, since ares_process_fd() uses that type for two of the arguments.
Diffstat (limited to 'setup.h')
-rw-r--r--setup.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/setup.h b/setup.h
index 465e012..2106df7 100644
--- a/setup.h
+++ b/setup.h
@@ -3,7 +3,7 @@
/* $Id$ */
-/* Copyright (C) 2004 - 2005 by Daniel Stenberg et al
+/* Copyright (C) 2004 - 2007 by Daniel Stenberg et al
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
@@ -118,18 +118,6 @@
#undef PACKAGE
/*
- * Typedef our socket type
- */
-
-#ifdef USE_WINSOCK
-typedef SOCKET ares_socket_t;
-#define ARES_SOCKET_BAD INVALID_SOCKET
-#else
-typedef int ares_socket_t;
-#define ARES_SOCKET_BAD -1
-#endif
-
-/*
* Assume a few thing unless they're set by configure
*/