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

rx_inflate.c File Reference


Detailed Description

Network RX -- decompressing stage.

Author:
Raphael Manfredi
Date:
2002-2003

#include "common.h"
#include <zlib.h>
#include "hosts.h"
#include "pmsg.h"
#include "rx.h"
#include "rx_inflate.h"
#include "rxbuf.h"
#include "lib/walloc.h"
#include "lib/zlib_util.h"
#include "lib/override.h"

Data Structures

struct  attr
 Private attributes for the decompressing layer. More...


Defines

#define IF_ENABLED   0x00000001 /**< Reception enabled */
 Reception enabled.


Functions

 RCSID ("$Id:rx_inflate.c, v 1.14 2005/12/17 09:25:44 daichik Exp $")
pmsg_tinflate_data (rxdrv_t *rx, pmsg_t *mb)
 Decompress more data from the input buffer `mb'.

gpointer rx_inflate_init (rxdrv_t *rx, gconstpointer args)
 Initialize the driver.

void rx_inflate_destroy (rxdrv_t *rx)
 Get rid of the driver's private data.

void rx_inflate_recv (rxdrv_t *rx, pmsg_t *mb)
 Got data from lower layer.

void rx_inflate_enable (rxdrv_t *rx)
 Enable reception of data.

void rx_inflate_disable (rxdrv_t *rx)
 Disable reception of data.

const struct rxdrv_opsrx_inflate_get_ops (void)

Variables

const struct rxdrv_ops rx_inflate_ops


Define Documentation

#define IF_ENABLED   0x00000001 /**< Reception enabled */
 

Reception enabled.


Function Documentation

pmsg_t* inflate_data rxdrv_t rx,
pmsg_t mb
[static]
 

Decompress more data from the input buffer `mb'.

Returns:
decompressed data in a new buffer, or NULL if no more data.

RCSID "$Id:rx_inflate.  c,
v 1.14 2005/12/17 09:25:44 daichik Exp $" 
 

void rx_inflate_destroy rxdrv_t rx  )  [static]
 

Get rid of the driver's private data.

void rx_inflate_disable rxdrv_t rx  )  [static]
 

Disable reception of data.

void rx_inflate_enable rxdrv_t rx  )  [static]
 

Enable reception of data.

const struct rxdrv_ops* rx_inflate_get_ops void   ) 
 

gpointer rx_inflate_init rxdrv_t rx,
gconstpointer  args
[static]
 

Initialize the driver.

void rx_inflate_recv rxdrv_t rx,
pmsg_t mb
[static]
 

Got data from lower layer.

< Inflated message


Variable Documentation

const struct rxdrv_ops rx_inflate_ops [static]
 

Initial value:

 {
    rx_inflate_init,        
    rx_inflate_destroy,     
    rx_inflate_recv,        
    rx_inflate_enable,      
    rx_inflate_disable,     
    rx_no_source,           
}


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