diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-23 17:35:38 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-23 17:35:38 +0000 |
commit | a881ec667a8e9b40398dcc62cdfb97183e5c77ee (patch) | |
tree | d2f9a30c6e9a99f653ee1b6d800261ab51076709 /src/transport/plugin_transport_udp.h | |
parent | 0c3dc8571333312dcfe3bf18e383ca85a1fc79b0 (diff) | |
download | gnunet-a881ec667a8e9b40398dcc62cdfb97183e5c77ee.tar.gz gnunet-a881ec667a8e9b40398dcc62cdfb97183e5c77ee.zip |
splitted ipv4 and ipv6 socket select scheduling
removed looping for write select
improved ipv4/v6 en/disabling
session management
Diffstat (limited to 'src/transport/plugin_transport_udp.h')
-rw-r--r-- | src/transport/plugin_transport_udp.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_udp.h b/src/transport/plugin_transport_udp.h index 6f78a4169..5637524bc 100644 --- a/src/transport/plugin_transport_udp.h +++ b/src/transport/plugin_transport_udp.h | |||
@@ -137,6 +137,7 @@ struct Plugin | |||
137 | * ID of select task | 137 | * ID of select task |
138 | */ | 138 | */ |
139 | GNUNET_SCHEDULER_TaskIdentifier select_task; | 139 | GNUNET_SCHEDULER_TaskIdentifier select_task; |
140 | GNUNET_SCHEDULER_TaskIdentifier select_task_v6; | ||
140 | 141 | ||
141 | /** | 142 | /** |
142 | * Tokenizer for inbound messages. | 143 | * Tokenizer for inbound messages. |
@@ -166,18 +167,34 @@ struct Plugin | |||
166 | /** | 167 | /** |
167 | * FD Read set | 168 | * FD Read set |
168 | */ | 169 | */ |
169 | struct GNUNET_NETWORK_FDSet *rs; | 170 | struct GNUNET_NETWORK_FDSet *rs_v4; |
170 | 171 | ||
171 | /** | 172 | /** |
172 | * FD Write set | 173 | * FD Write set |
173 | */ | 174 | */ |
174 | struct GNUNET_NETWORK_FDSet *ws; | 175 | struct GNUNET_NETWORK_FDSet *ws_v4; |
176 | |||
177 | |||
178 | int with_v4_ws; | ||
175 | 179 | ||
176 | /** | 180 | /** |
177 | * The read socket for IPv4 | 181 | * The read socket for IPv4 |
178 | */ | 182 | */ |
179 | struct GNUNET_NETWORK_Handle *sockv4; | 183 | struct GNUNET_NETWORK_Handle *sockv4; |
180 | 184 | ||
185 | |||
186 | /** | ||
187 | * FD Read set | ||
188 | */ | ||
189 | struct GNUNET_NETWORK_FDSet *rs_v6; | ||
190 | |||
191 | /** | ||
192 | * FD Write set | ||
193 | */ | ||
194 | struct GNUNET_NETWORK_FDSet *ws_v6; | ||
195 | |||
196 | int with_v6_ws; | ||
197 | |||
181 | /** | 198 | /** |
182 | * The read socket for IPv6 | 199 | * The read socket for IPv6 |
183 | */ | 200 | */ |