diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-19 15:52:22 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-19 15:52:22 +0100 |
commit | bc43d8978d8695ff97cc67b65c29769e9c7f8f0e (patch) | |
tree | 94d1428dc2b4e70d87d6521b487a92c6fc139827 /src/cadet/gnunet-service-cadet-new.h | |
parent | bd3147503e27ddefcb6ba0dcb99c2b32947622a4 (diff) | |
download | gnunet-bc43d8978d8695ff97cc67b65c29769e9c7f8f0e.tar.gz gnunet-bc43d8978d8695ff97cc67b65c29769e9c7f8f0e.zip |
much work on connection/route/peer-level queue management
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new.h | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet-new.h b/src/cadet/gnunet-service-cadet-new.h index 862a0f088..9f4667e23 100644 --- a/src/cadet/gnunet-service-cadet-new.h +++ b/src/cadet/gnunet-service-cadet-new.h | |||
@@ -105,7 +105,44 @@ struct CadetPeerPathEntry | |||
105 | /** | 105 | /** |
106 | * Entry in list of connections used by tunnel, with metadata. | 106 | * Entry in list of connections used by tunnel, with metadata. |
107 | */ | 107 | */ |
108 | struct CadetTConnection; | 108 | struct CadetTConnection |
109 | { | ||
110 | /** | ||
111 | * Next in DLL. | ||
112 | */ | ||
113 | struct CadetTConnection *next; | ||
114 | |||
115 | /** | ||
116 | * Prev in DLL. | ||
117 | */ | ||
118 | struct CadetTConnection *prev; | ||
119 | |||
120 | /** | ||
121 | * Connection handle. | ||
122 | */ | ||
123 | struct CadetConnection *cc; | ||
124 | |||
125 | /** | ||
126 | * Tunnel this connection belongs to. | ||
127 | */ | ||
128 | struct CadetTunnel *t; | ||
129 | |||
130 | /** | ||
131 | * Creation time, to keep oldest connection alive. | ||
132 | */ | ||
133 | struct GNUNET_TIME_Absolute created; | ||
134 | |||
135 | /** | ||
136 | * Connection throughput, to keep fastest connection alive. | ||
137 | */ | ||
138 | uint32_t throughput; | ||
139 | |||
140 | /** | ||
141 | * Is the connection currently ready for transmission? | ||
142 | */ | ||
143 | int is_ready; | ||
144 | }; | ||
145 | |||
109 | 146 | ||
110 | /** | 147 | /** |
111 | * Active path through the network (used by a tunnel). There may | 148 | * Active path through the network (used by a tunnel). There may |