aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-25 04:06:58 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-25 04:06:58 +0100
commitd1490c7864309e0a9dabab0687bbb4b2ab965b47 (patch)
tree75e3e1489fc9461c34163412dbccae3af88b4638
parentf27515316a9374e88c689b7e039b3902bd56b5a1 (diff)
this should be dead
-rw-r--r--src/gns/gnunet-gns-helper-service-w32.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/gns/gnunet-gns-helper-service-w32.c b/src/gns/gnunet-gns-helper-service-w32.c
index c0482d9312..8a047c9fdc 100644
--- a/src/gns/gnunet-gns-helper-service-w32.c
+++ b/src/gns/gnunet-gns-helper-service-w32.c
@@ -155,53 +155,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.
*
* @param client target of the message