aboutsummaryrefslogtreecommitdiff
path: root/src/or/transports.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2012-01-26 00:29:15 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2012-07-03 21:26:03 +0300
commitaecc728a5adce225c8415ca90121f2dd23f4f695 (patch)
treeb8f965cef3ec781c937b0513dfa3d7a9e736ca11 /src/or/transports.h
parentd11b772a6c621d7011eed20cd58383c6f1ac0b54 (diff)
downloadtor-aecc728a5adce225c8415ca90121f2dd23f4f695.tar
tor-aecc728a5adce225c8415ca90121f2dd23f4f695.tar.gz
Refactor mp->transports to use transport_t.
Diffstat (limited to 'src/or/transports.h')
-rw-r--r--src/or/transports.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/or/transports.h b/src/or/transports.h
index f00c7c093..aeca87312 100644
--- a/src/or/transports.h
+++ b/src/or/transports.h
@@ -95,28 +95,7 @@ typedef struct {
smartlist_t *transports_to_launch;
/* The 'transports' list contains all the transports this proxy has
- launched.
-
- Before a managed_proxy_t reaches the PT_PROTO_COMPLETED phase,
- this smartlist contains a 'transport_t' for every transport it
- has launched.
-
- When the managed_proxy_t reaches the PT_PROTO_COMPLETED phase, it
- registers all its transports to the circuitbuild.c subsystem. At
- that point the 'transport_t's are owned by the circuitbuild.c
- subsystem.
-
- To avoid carrying dangling 'transport_t's in this smartlist,
- right before the managed_proxy_t reaches the PT_PROTO_COMPLETED
- phase we replace all 'transport_t's with strings of their
- transport names.
-
- So, tl;dr:
- When (conf_state != PT_PROTO_COMPLETED) this list carries
- (transport_t *).
- When (conf_state == PT_PROTO_COMPLETED) this list carries
- (char *).
- */
+ launched. */
smartlist_t *transports;
} managed_proxy_t;