Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

mq_udp.h File Reference


Detailed Description

Message queues with a UDP sending stack.

Author:
Raphael Manfredi
Date:
2002-2003

#include "mq.h"
#include "pmsg.h"
#include "if/core/hosts.h"

Go to the source code of this file.

Functions

mqueue_tmq_udp_make (gint maxsize, struct gnutella_node *n, struct txdriver *nd)
 Create new message queue capable of holding `maxsize' bytes, and owned by the supplied node.

void mq_udp_putq (mqueue_t *q, pmsg_t *mb, gnet_host_t *to)
 Enqueue message, which becomes owned by the queue.

void mq_udp_node_putq (mqueue_t *q, pmsg_t *mb, struct gnutella_node *n)


Function Documentation

mqueue_t* mq_udp_make gint  maxsize,
struct gnutella_node n,
struct txdriver nd
 

Create new message queue capable of holding `maxsize' bytes, and owned by the supplied node.

void mq_udp_node_putq mqueue_t q,
pmsg_t mb,
struct gnutella_node n
 

void mq_udp_putq mqueue_t q,
pmsg_t mb,
gnet_host_t to
 

Enqueue message, which becomes owned by the queue.

The data held in `to' is copied, so the structure can be reclaimed immediately by the caller.


Generated on Sun Feb 12 10:50:04 2006 for Gtk-Gnutella by doxygen 1.3.6