Commit 10548ae9 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

a few minor updates to hacking


svn:r908
parent 8222fe8e
...@@ -65,14 +65,15 @@ the distant future, stuff may have changed.) ...@@ -65,14 +65,15 @@ the distant future, stuff may have changed.)
Also implements parsing functions to read HTTP and SOCKS commands Also implements parsing functions to read HTTP and SOCKS commands
from buffers. from buffers.
tree.h -- A splay tree implementation by Niels Provos. Used only by tree.h -- A splay tree implementation by Niels Provos. Used by
dns.c. dns.c for dns caching at exits, and by connection_edge.c for dns
caching at clients.
config.c -- Code to parse and validate the configuration file. config.c -- Code to parse and validate the configuration file.
[Background processing modules] [Background processing modules]
cpuworker.c -- Implements a separate 'CPU worker' process to perform cpuworker.c -- Implements a farm of 'CPU worker' processes to perform
CPU-intensive tasks in the background, so as not interrupt the CPU-intensive tasks in the background, so as not interrupt the
onion router. (OR only) onion router. (OR only)
...@@ -163,7 +164,7 @@ the distant future, stuff may have changed.) ...@@ -163,7 +164,7 @@ the distant future, stuff may have changed.)
[Internal] [Internal]
CONN_TYPE_DNSWORKER -- Connection from the main process to a DNS CONN_TYPE_DNSWORKER -- Connection from the main process to a DNS
worker process. [OR only] worker process. [OR only]
CONN_TYPE_CPUWORKER -- Connection from the main process to a CPU CONN_TYPE_CPUWORKER -- Connection from the main process to a CPU
worker process. [OR only] worker process. [OR only]
...@@ -196,7 +197,7 @@ the distant future, stuff may have changed.) ...@@ -196,7 +197,7 @@ the distant future, stuff may have changed.)
poll, if poll is not available) to handle nonblocking (asynchronous) poll, if poll is not available) to handle nonblocking (asynchronous)
IO. If you're not familiar with nonblocking IO, check out the links IO. If you're not familiar with nonblocking IO, check out the links
at the end of this document. at the end of this document.
All asynchronous logic is handled in main.c. The functions All asynchronous logic is handled in main.c. The functions
'connection_add', 'connection_set_poll_socket', and 'connection_remove' 'connection_add', 'connection_set_poll_socket', and 'connection_remove'
manage an array of connection_t*, and keep in synch with the array of manage an array of connection_t*, and keep in synch with the array of
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment