diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-08-12 03:08:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-08-12 03:08:41 +0000 |
commit | c336c99e609b2918ca664bc1fdbfb916a6811508 (patch) | |
tree | ff04c4774b60cef2dce98d88497ac5ac4a3cb8e7 /src/or/directory.c | |
parent | 5126f203f23773f64b51e5c0c7b7e1d702f26ca9 (diff) | |
download | tor-c336c99e609b2918ca664bc1fdbfb916a6811508.tar tor-c336c99e609b2918ca664bc1fdbfb916a6811508.tar.gz |
Start of port to win32. Missing are:
- signal support
- forking for DNS farm
- changes for async IO
- daemonizing
In other words, some files still don't build, and the ones that do build,
do nonblocking IO incorrectly.
I'm also not checking in the project files till I have a good place
for them.
svn:r380
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 4ede81fd8..98d207b26 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -56,7 +56,7 @@ void directory_initiate_fetch(routerinfo_t *router) { connection_free(conn); return; } - fcntl(s, F_SETFL, O_NONBLOCK); /* set s to non-blocking */ + set_socket_nonblocking(s); memset((void *)&router_addr,0,sizeof(router_addr)); router_addr.sin_family = AF_INET; @@ -254,7 +254,7 @@ int connection_dir_finished_flushing(connection_t *conn) { switch(conn->state) { case DIR_CONN_STATE_CONNECTING: - if (getsockopt(conn->s, SOL_SOCKET, SO_ERROR, &e, &len) < 0) { /* not yet */ + if (getsockopt(conn->s, SOL_SOCKET, SO_ERROR, (void*)&e, &len) < 0) { /* not yet */ if(errno != EINPROGRESS){ /* yuck. kill it. */ log_fn(LOG_DEBUG,"in-progress connect failed. Removing."); |