diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-02-20 12:55:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-02-20 12:55:59 -0500 |
commit | db08f640d543bd4ef32ffe1f83c8aeca77bb0ce0 (patch) | |
tree | ea621727aebf35c6835031be18c602072402944f /bufferevent-internal.h | |
parent | 4faeaea90e5d7a5d76acd8891ba88d4ed099edbd (diff) | |
download | libevent-db08f640d543bd4ef32ffe1f83c8aeca77bb0ce0.tar.gz |
Suspend read/write on bufferevents during hostname lookup
When we're doing a lookup in preparation for doing a connect, we
might have an unconnected socket on hand, and mustn't actually do
any reading or writing with it.
Diffstat (limited to 'bufferevent-internal.h')
-rw-r--r-- | bufferevent-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bufferevent-internal.h b/bufferevent-internal.h index ad1f844e..5be964fd 100644 --- a/bufferevent-internal.h +++ b/bufferevent-internal.h @@ -53,6 +53,9 @@ extern "C" { #define BEV_SUSPEND_BW 0x02 /* On a base bufferevent: when we have emptied the group's bandwidth bucket. */ #define BEV_SUSPEND_BW_GROUP 0x04 +/* On a socket bufferevent: can't do any operations while we're waiting for + * name lookup to finish. */ +#define BEV_SUSPEND_LOOKUP 0x08 struct bufferevent_rate_limit_group { /** List of all members in the group */ |