From: Christian Grothoff Date: Sat, 25 Feb 2017 03:06:58 +0000 (+0100) Subject: this should be dead X-Git-Tag: taler-0.2.1~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d1490c7864309e0a9dabab0687bbb4b2ab965b47;p=oweals%2Fgnunet.git this should be dead --- diff --git a/src/gns/gnunet-gns-helper-service-w32.c b/src/gns/gnunet-gns-helper-service-w32.c index c0482d931..8a047c9fd 100644 --- a/src/gns/gnunet-gns-helper-service-w32.c +++ b/src/gns/gnunet-gns-helper-service-w32.c @@ -154,53 +154,6 @@ do_shutdown (void *cls) } -/** - * Function called to notify a client about the socket - * being ready to queue more data. "buf" will be - * NULL and "size" zero if the socket was closed for - * writing in the meantime. - * - * @param cls closure - * @param size number of bytes available in buf - * @param buf where the callee should write the message - * @return number of bytes written to buf - */ -static size_t -transmit_callback (void *cls, size_t size, void *buf) -{ - struct TransmitCallbackContext *tcc = cls; - size_t msize; - - tcc->th = NULL; - GNUNET_CONTAINER_DLL_remove (tcc_head, tcc_tail, tcc); - msize = ntohs (tcc->msg->size); - if (size == 0) - { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - _("Transmission to client failed!\n")); - GNUNET_free (tcc->msg); - GNUNET_free (tcc); - return 0; - } - GNUNET_assert (size >= msize); - GNUNET_memcpy (buf, tcc->msg, msize); - GNUNET_free (tcc->msg); - GNUNET_free (tcc); - for (tcc = tcc_head; tcc; tcc = tcc->next) - { - if (NULL == tcc->th) - { - tcc->th = GNUNET_SERVER_notify_transmit_ready (tcc->client, - ntohs (tcc->msg->size), - GNUNET_TIME_UNIT_FOREVER_REL, - &transmit_callback, tcc); - break; - } - } - return msize; -} - - /** * Transmit the given message to the client. *