From 324b192f68bfe697009831a5bad3acdd7bd2cec5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 12 Jan 2005 06:42:32 +0000 Subject: Make Tor use Niels Provos's libevent instead of it's current poll-but-sometimes-select mess. This will let us use faster async cores (like epoll, kpoll, and /dev/poll), and hopefully work better on Windows too. There are some fairly nasty changes to main.c here; this will almost certainly break something. But hey, that's what alphas are for. svn:r3341 --- src/or/directory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/directory.c') diff --git a/src/or/directory.c b/src/or/directory.c index 1b65505916..b4c5838c8e 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -321,7 +321,7 @@ directory_initiate_command(const char *address, uint32_t addr, /* queue the command on the outbuf */ directory_send_command(conn, platform, purpose, resource, payload, payload_len); - connection_watch_events(conn, POLLIN | POLLOUT | POLLERR); + connection_watch_events(conn, EV_READ | EV_WRITE); /* writable indicates finish, readable indicates broken link, error indicates broken link in windowsland. */ } @@ -342,7 +342,7 @@ directory_initiate_command(const char *address, uint32_t addr, /* queue the command on the outbuf */ directory_send_command(conn, platform, purpose, resource, payload, payload_len); - connection_watch_events(conn, POLLIN | POLLOUT | POLLERR); + connection_watch_events(conn, EV_READ | EV_WRITE); } } -- cgit v1.2.3-54-g00ecf