* for this peer (from @e mq).
*/
struct GNUNET_MQ_Envelope *env;
-
+
/**
* Value the client returned when we connected, used
* as the closure in various places.
*/
void *client_cls;
-
+
/**
* Peer the record is about.
*/
* so that it is transmitted with the given @a priority and
* the given @a cork value.
*
- * @param cork desired corking
+ * @param cork desired corking
* @param priority desired message priority
* @param[out] flags set to `flags` value for #GNUNET_MQ_set_options()
* @return `extra` argument to give to #GNUNET_MQ_set_options()
struct PeerRecord *pr = impl_state;
GNUNET_assert (NULL != pr->env);
- GNUNET_MQ_send_cancel (pr->env);
+ GNUNET_MQ_discard (pr->env);
pr->env = NULL;
}
struct PeerRecord *pr;
uint64_t flags;
const void *extra;
-
+
pr = GNUNET_new (struct PeerRecord);
pr->peer = *peer;
pr->h = h;
{
uint16_t msize;
const struct GNUNET_MessageHeader *em;
-
+
msize = ntohs (ntm->header.size) - sizeof (struct NotifyTrafficMessage);
if (msize < sizeof (struct GNUNET_MessageHeader))
{
* ignore! (we should have already sent another request) */
return;
}
-
+
/* ok, all good, send message out! */
GNUNET_MQ_send (h->mq,
pr->env);
/**
- * Disconnect from the core service.
+ * Disconnect from the core service.
*
* @param handle connection to core to disconnect
*/
const struct GNUNET_PeerIdentity *pid)
{
struct PeerRecord *pr;
-
+
pr = GNUNET_CONTAINER_multipeermap_get (h->peers,
pid);
if (NULL == pr)