[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10114 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10114 - gnunet/src/util |
Date: |
Fri, 22 Jan 2010 15:24:54 +0100 |
Author: grothoff
Date: 2010-01-22 15:24:54 +0100 (Fri, 22 Jan 2010)
New Revision: 10114
Modified:
gnunet/src/util/server_nc.c
Log:
drop
Modified: gnunet/src/util/server_nc.c
===================================================================
--- gnunet/src/util/server_nc.c 2010-01-22 14:20:31 UTC (rev 10113)
+++ gnunet/src/util/server_nc.c 2010-01-22 14:24:54 UTC (rev 10114)
@@ -33,25 +33,50 @@
#include "gnunet_time_lib.h"
+/**
+ * Entry in list of messages pending to be transmitted.
+ */
struct PendingMessageList
{
+ /**
+ * This is a linked list.
+ */
struct PendingMessageList *next;
+ /**
+ * Message to transmit (allocated at the end of this
+ * struct, do not free)
+ */
const struct GNUNET_MessageHeader *msg;
+ /**
+ * Can this message be dropped?
+ */
int can_drop;
};
+/**
+ * Lists of clients we manage for notifications.
+ */
struct ClientList
{
+ /**
+ * This is a linked list.
+ */
struct ClientList *next;
+ /**
+ * Overall context this client belongs to.
+ */
struct GNUNET_SERVER_NotificationContext *nc;
+ /**
+ * Handle to the client.
+ */
struct GNUNET_SERVER_Client *client;
struct GNUNET_CONNECTION_TransmitHandle *th;
@@ -114,6 +139,7 @@
pos->pending_head = pml->next;
GNUNET_free (pml);
}
+ GNUNET_SERVER_client_drop (client);
GNUNET_free (pos);
}
@@ -189,6 +215,7 @@
cl->next = nc->clients;
cl->nc = nc;
cl->client = client;
+ GNUNET_SERVER_client_keep (client);
nc->clients = cl;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10114 - gnunet/src/util,
gnunet <=