diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-06-29 10:48:03 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-06-29 10:48:03 +0000 |
commit | ff12c387ccbf650427512dcb18cfbff0934c4edf (patch) | |
tree | 37fceadd0a1564b0a756367d30578d59e3e64baa /src/transport/test_plugin_transport_http.c | |
parent | b51130e1f156917a1ddd892c645d871b84192ad6 (diff) | |
download | gnunet-ff12c387ccbf650427512dcb18cfbff0934c4edf.tar.gz gnunet-ff12c387ccbf650427512dcb18cfbff0934c4edf.zip |
Diffstat (limited to 'src/transport/test_plugin_transport_http.c')
-rw-r--r-- | src/transport/test_plugin_transport_http.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 0e26c4639..7fdb2c6c4 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c | |||
@@ -44,7 +44,7 @@ | |||
44 | 44 | ||
45 | #define VERBOSE GNUNET_YES | 45 | #define VERBOSE GNUNET_YES |
46 | #define DEBUG GNUNET_NO | 46 | #define DEBUG GNUNET_NO |
47 | #define DEBUG_CURL GNUNET_YES | 47 | #define DEBUG_CURL GNUNET_NO |
48 | #define HTTP_BUFFER_SIZE 2048 | 48 | #define HTTP_BUFFER_SIZE 2048 |
49 | 49 | ||
50 | #define PLUGIN libgnunet_plugin_transport_template | 50 | #define PLUGIN libgnunet_plugin_transport_template |
@@ -164,12 +164,12 @@ struct IPv4HttpAddress | |||
164 | /** | 164 | /** |
165 | * IPv4 address, in network byte order. | 165 | * IPv4 address, in network byte order. |
166 | */ | 166 | */ |
167 | uint32_t ipv4_addr; | 167 | uint32_t ipv4_addr GNUNET_PACKED; |
168 | 168 | ||
169 | /** | 169 | /** |
170 | * Port number, in network byte order. | 170 | * Port number, in network byte order. |
171 | */ | 171 | */ |
172 | uint16_t u_port; | 172 | uint16_t u_port GNUNET_PACKED; |
173 | 173 | ||
174 | }; | 174 | }; |
175 | 175 | ||
@@ -182,16 +182,15 @@ struct IPv6HttpAddress | |||
182 | /** | 182 | /** |
183 | * IPv6 address. | 183 | * IPv6 address. |
184 | */ | 184 | */ |
185 | struct in6_addr ipv6_addr; | 185 | struct in6_addr ipv6_addr GNUNET_PACKED; |
186 | 186 | ||
187 | /** | 187 | /** |
188 | * Port number, in network byte order. | 188 | * Port number, in network byte order. |
189 | */ | 189 | */ |
190 | uint16_t u6_port; | 190 | uint16_t u6_port GNUNET_PACKED; |
191 | 191 | ||
192 | }; | 192 | }; |
193 | 193 | ||
194 | |||
195 | /** | 194 | /** |
196 | * Our public key. | 195 | * Our public key. |
197 | */ | 196 | */ |
@@ -392,6 +391,8 @@ shutdown_clean () | |||
392 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "All tests successful\n"); | 391 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "All tests successful\n"); |
393 | } | 392 | } |
394 | 393 | ||
394 | api->disconnect(api->cls,&my_identity); | ||
395 | |||
395 | curl_multi_cleanup(multi_handle); | 396 | curl_multi_cleanup(multi_handle); |
396 | 397 | ||
397 | if (NULL != curl_handle) | 398 | if (NULL != curl_handle) |
@@ -499,7 +500,7 @@ receive (void *cls, | |||
499 | if (ntohs(message->size) == GNUNET_SERVER_MAX_MESSAGE_SIZE-1) | 500 | if (ntohs(message->size) == GNUNET_SERVER_MAX_MESSAGE_SIZE-1) |
500 | { | 501 | { |
501 | fail_msg_transmited_max_size = GNUNET_NO; | 502 | fail_msg_transmited_max_size = GNUNET_NO; |
502 | shutdown_clean(); | 503 | //shutdown_clean(); |
503 | } | 504 | } |
504 | 505 | ||
505 | return GNUNET_TIME_UNIT_ZERO; | 506 | return GNUNET_TIME_UNIT_ZERO; |