diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-05-13 20:48:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-05-13 20:48:48 +0000 |
commit | 46dbd9461af66b9aa11a7f9e776979df6be028ac (patch) | |
tree | 3bfc49e25d58aec0342727b02ba904c7ea6c7e0e /ares.h | |
parent | 76d91c21ad6248518e37eb6dd6b52fb7ab8a7fbd (diff) | |
download | c-ares-46dbd9461af66b9aa11a7f9e776979df6be028ac.tar.gz c-ares-46dbd9461af66b9aa11a7f9e776979df6be028ac.tar.bz2 c-ares-46dbd9461af66b9aa11a7f9e776979df6be028ac.zip |
- Introducing millisecond resolution support for the timeout option. See
ares_init_options()'s ARES_OPT_TIMEOUTMS.
Diffstat (limited to 'ares.h')
-rw-r--r-- | ares.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,7 @@ /* $Id$ */ /* Copyright 1998 by the Massachusetts Institute of Technology. + * Copyright (C) 2007 by Daniel Stenberg * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without @@ -112,6 +113,7 @@ extern "C" { #define ARES_OPT_SORTLIST (1 << 10) #define ARES_OPT_SOCK_SNDBUF (1 << 11) #define ARES_OPT_SOCK_RCVBUF (1 << 12) +#define ARES_OPT_TIMEOUTMS (1 << 13) /* Nameinfo flag values */ #define ARES_NI_NOFQDN (1 << 0) @@ -179,7 +181,7 @@ struct apattern; struct ares_options { int flags; - int timeout; + int timeout; /* in seconds or milliseconds, depending on options */ int tries; int ndots; unsigned short udp_port; |