diff options
Diffstat (limited to 'src/util/test_server_with_client.c')
-rw-r--r-- | src/util/test_server_with_client.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/util/test_server_with_client.c b/src/util/test_server_with_client.c index 4b9d84059..06a4b71d6 100644 --- a/src/util/test_server_with_client.c +++ b/src/util/test_server_with_client.c | |||
@@ -57,8 +57,7 @@ send_done (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
57 | 57 | ||
58 | 58 | ||
59 | static void | 59 | static void |
60 | recv_cb (void *cls, | 60 | recv_cb (void *cls, struct GNUNET_SERVER_Client *argclient, |
61 | struct GNUNET_SERVER_Client *argclient, | ||
62 | const struct GNUNET_MessageHeader *message) | 61 | const struct GNUNET_MessageHeader *message) |
63 | { | 62 | { |
64 | void *addr; | 63 | void *addr; |
@@ -169,13 +168,10 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
169 | #endif | 168 | #endif |
170 | sa.sin_family = AF_INET; | 169 | sa.sin_family = AF_INET; |
171 | sa.sin_port = htons (PORT); | 170 | sa.sin_port = htons (PORT); |
172 | server = GNUNET_SERVER_create (NULL, | 171 | server = |
173 | NULL, | 172 | GNUNET_SERVER_create (NULL, NULL, sap, slens, |
174 | sap, | 173 | GNUNET_TIME_relative_multiply |
175 | slens, | 174 | (GNUNET_TIME_UNIT_MILLISECONDS, 250), GNUNET_NO); |
176 | GNUNET_TIME_relative_multiply | ||
177 | (GNUNET_TIME_UNIT_MILLISECONDS, 250), | ||
178 | GNUNET_NO); | ||
179 | GNUNET_assert (server != NULL); | 175 | GNUNET_assert (server != NULL); |
180 | handlers[0].callback_cls = cls; | 176 | handlers[0].callback_cls = cls; |
181 | GNUNET_SERVER_add_handlers (server, handlers); | 177 | GNUNET_SERVER_add_handlers (server, handlers); |
@@ -187,8 +183,7 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
187 | "localhost"); | 183 | "localhost"); |
188 | client = GNUNET_CLIENT_connect ("test", cfg); | 184 | client = GNUNET_CLIENT_connect ("test", cfg); |
189 | GNUNET_assert (client != NULL); | 185 | GNUNET_assert (client != NULL); |
190 | GNUNET_CLIENT_notify_transmit_ready (client, | 186 | GNUNET_CLIENT_notify_transmit_ready (client, 256, |
191 | 256, | ||
192 | GNUNET_TIME_relative_multiply | 187 | GNUNET_TIME_relative_multiply |
193 | (GNUNET_TIME_UNIT_MILLISECONDS, 250), | 188 | (GNUNET_TIME_UNIT_MILLISECONDS, 250), |
194 | GNUNET_NO, ¬ify_ready, NULL); | 189 | GNUNET_NO, ¬ify_ready, NULL); |