diff options
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r-- | src/cadet/cadet_api.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 3a75266b7..45cb66c1d 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -73,72 +73,6 @@ struct GNUNET_CADET_Handle | |||
73 | struct GNUNET_TIME_Relative reconnect_time; | 73 | struct GNUNET_TIME_Relative reconnect_time; |
74 | }; | 74 | }; |
75 | 75 | ||
76 | |||
77 | /** | ||
78 | * Opaque handle to a channel. | ||
79 | */ | ||
80 | struct GNUNET_CADET_Channel | ||
81 | { | ||
82 | /** | ||
83 | * Other end of the channel. | ||
84 | */ | ||
85 | struct GNUNET_PeerIdentity peer; | ||
86 | |||
87 | /** | ||
88 | * Handle to the cadet this channel belongs to | ||
89 | */ | ||
90 | struct GNUNET_CADET_Handle *cadet; | ||
91 | |||
92 | /** | ||
93 | * Channel's port, if incoming. | ||
94 | */ | ||
95 | struct GNUNET_CADET_Port *incoming_port; | ||
96 | |||
97 | /** | ||
98 | * Any data the caller wants to put in here, used for the | ||
99 | * various callbacks (@e disconnects, @e window_changes, handlers). | ||
100 | */ | ||
101 | void *ctx; | ||
102 | |||
103 | /** | ||
104 | * Message Queue for the channel (which we are implementing). | ||
105 | */ | ||
106 | struct GNUNET_MQ_Handle *mq; | ||
107 | |||
108 | /** | ||
109 | * Task to allow mq to send more traffic. | ||
110 | */ | ||
111 | struct GNUNET_SCHEDULER_Task *mq_cont; | ||
112 | |||
113 | /** | ||
114 | * Pending envelope with a message to be transmitted to the | ||
115 | * service as soon as we are allowed to. Should only be | ||
116 | * non-NULL if @e allow_send is 0. | ||
117 | */ | ||
118 | struct GNUNET_MQ_Envelope *pending_env; | ||
119 | |||
120 | /** | ||
121 | * Window change handler. | ||
122 | */ | ||
123 | GNUNET_CADET_WindowSizeEventHandler window_changes; | ||
124 | |||
125 | /** | ||
126 | * Disconnect handler. | ||
127 | */ | ||
128 | GNUNET_CADET_DisconnectEventHandler disconnects; | ||
129 | |||
130 | /** | ||
131 | * Local ID of the channel, #GNUNET_CADET_LOCAL_CHANNEL_ID_CLI bit is set if outbound. | ||
132 | */ | ||
133 | struct GNUNET_CADET_ClientChannelNumber ccn; | ||
134 | |||
135 | /** | ||
136 | * How many messages are we allowed to send to the service right now? | ||
137 | */ | ||
138 | unsigned int allow_send; | ||
139 | }; | ||
140 | |||
141 | |||
142 | /** | 76 | /** |
143 | * Opaque handle to a port. | 77 | * Opaque handle to a port. |
144 | */ | 78 | */ |