GNUnet 0.22.2
cadet_api_drop_message.c File Reference

cadet api: client implementation of cadet service More...

#include "platform.h"
#include "cadet.h"
Include dependency graph for cadet_api_drop_message.c:

Go to the source code of this file.

Functions

static void GNUNET_CADET_drop_message (struct GNUNET_MQ_Handle *mq, struct GNUNET_CADET_ClientChannelNumber ccn, uint16_t type)
 Drop the next cadet message of a given type. More...
 

Detailed Description

cadet api: client implementation of cadet service

Author
t3sserakt

Definition in file cadet_api_drop_message.c.

Function Documentation

◆ GNUNET_CADET_drop_message()

static void GNUNET_CADET_drop_message ( struct GNUNET_MQ_Handle mq,
struct GNUNET_CADET_ClientChannelNumber  ccn,
uint16_t  type 
)
static

Drop the next cadet message of a given type.

Parameters
mqmessage queue
ccnclient channel number.
typeof cadet message to be dropped.

Definition at line 36 of file cadet_api_drop_message.c.

39{
41 struct GNUNET_MQ_Envelope *env;
42
44
45 message->ccn = ccn;
46 message->type = type;
47
49 "Dropping message for channel of type %s (%d)\n", type ==
51 "GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY" : "UNKNOWN", type);
52
54
55}
struct GNUNET_MQ_Handle * mq
Definition: 003.c:5
struct GNUNET_MQ_Envelope * env
Definition: 005.c:1
static uint32_t type
Type string converted to DNS type value.
#define GNUNET_log(kind,...)
@ GNUNET_ERROR_TYPE_INFO
void GNUNET_MQ_send(struct GNUNET_MQ_Handle *mq, struct GNUNET_MQ_Envelope *ev)
Send a message with the given message queue.
Definition: mq.c:305
#define GNUNET_MQ_msg(mvar, type)
Allocate a GNUNET_MQ_Envelope.
Definition: gnunet_mq_lib.h:76
#define GNUNET_MESSAGE_TYPE_CADET_DROP_CADET_MESSAGE
Request to drop a message of type X to peer y.
#define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY
Ask the cadet service to destroy a channel.
Message to drop another message of specific type.
Definition: cadet.h:321
struct GNUNET_CADET_ClientChannelNumber ccn
ID of the channel we want to drop a message for.
Definition: cadet.h:336
uint16_t type
Type of the message this handler covers, in host byte order.
Definition: cadet.h:331

References GNUNET_CADET_RequestDropCadetMessage::ccn, env, GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY, GNUNET_MESSAGE_TYPE_CADET_DROP_CADET_MESSAGE, GNUNET_MQ_msg, GNUNET_MQ_send(), mq, type, and GNUNET_CADET_RequestDropCadetMessage::type.

Here is the call graph for this function: