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

rxbuf.h File Reference


Detailed Description

Network RX buffer allocator.

Author:
Raphael Manfredi
Date:
2002-2003

#include "pmsg.h"

Go to the source code of this file.

Functions

pdata_trxbuf_new (void)
 Get a new RX buffer from the pool.

void rxbuf_free (gpointer p, gpointer unused)
 Put RX buffer back to its pool.

void rxbuf_init (void)
 Initialize pool of RX buffers.

void rxbuf_close (void)
 Dispose of all the RX buffers.


Function Documentation

void rxbuf_close void   ) 
 

Dispose of all the RX buffers.

void rxbuf_free gpointer  p,
gpointer  unused_data
 

Put RX buffer back to its pool.

Can be called directly, or via pdata_unref() because this routine is installed as the "free routine" of the buffer.

void rxbuf_init void   ) 
 

Initialize pool of RX buffers.

pdata_t* rxbuf_new void   ) 
 

Get a new RX buffer from the pool.

Returns:
new RX buffer.


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