summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-02-23 17:35:38 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-02-23 17:35:38 +0000
commita881ec667a8e9b40398dcc62cdfb97183e5c77ee (patch)
treed2f9a30c6e9a99f653ee1b6d800261ab51076709 /src/transport/plugin_transport_udp.h
parent0c3dc8571333312dcfe3bf18e383ca85a1fc79b0 (diff)
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.h21
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
* ID of select task
*/
GNUNET_SCHEDULER_TaskIdentifier select_task;
+ GNUNET_SCHEDULER_TaskIdentifier select_task_v6;
/**
* Tokenizer for inbound messages.
@@ -166,18 +167,34 @@ struct Plugin
/**
* FD Read set
*/
- struct GNUNET_NETWORK_FDSet *rs;
+ struct GNUNET_NETWORK_FDSet *rs_v4;
/**
* FD Write set
*/
- struct GNUNET_NETWORK_FDSet *ws;
+ struct GNUNET_NETWORK_FDSet *ws_v4;
+
+
+ int with_v4_ws;
/**
* The read socket for IPv4
*/
struct GNUNET_NETWORK_Handle *sockv4;
+
+ /**
+ * FD Read set
+ */
+ struct GNUNET_NETWORK_FDSet *rs_v6;
+
+ /**
+ * FD Write set
+ */
+ struct GNUNET_NETWORK_FDSet *ws_v6;
+
+ int with_v6_ws;
+
/**
* The read socket for IPv6
*/