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

bh_upload.h File Reference


Detailed Description

Handles the server-side of the Browse Host function.

Author:
Christian Biere

Raphael Manfredi

Date:
2005

#include "common.h"
#include "tx.h"
#include "tx_link.h"
#include "tx_deflate.h"
#include "if/core/hosts.h"
#include "if/core/wrap.h"

Go to the source code of this file.

Data Structures

struct  special_ctx

Defines

#define BH_VERSION_MAJOR   1
 The version of the Browse-Host protocol we support.

#define BH_VERSION_MINOR   0
#define BH_DEFLATE   (1 << 0) /**< Deflate output */
 Deflate output.

#define BH_GZIP   (1 << 1) /**< gzip output */
 gzip output

#define BH_CHUNKED   (1 << 2) /**< Emit chunked data */
 Emit chunked data.

#define BH_HTML   (1 << 3) /**< Emit HTML data */
 Emit HTML data.

#define BH_QHITS   (1 << 4) /**< Emit Gnutella query hits */
 Emit Gnutella query hits.


Typedefs

typedef void(* bh_closed_t )(gpointer arg)
typedef void(* bh_writable_t )(gpointer arg)

Functions

special_ctxbrowse_host_open (gpointer owner, gnet_host_t *host, bh_writable_t writable, struct tx_deflate_cb *deflate_cb, struct tx_link_cb *link_cb, wrap_io_t *wio, gint flags)
 Creates a new browse host context.


Define Documentation

#define BH_CHUNKED   (1 << 2) /**< Emit chunked data */
 

Emit chunked data.

#define BH_DEFLATE   (1 << 0) /**< Deflate output */
 

Deflate output.

#define BH_GZIP   (1 << 1) /**< gzip output */
 

gzip output

#define BH_HTML   (1 << 3) /**< Emit HTML data */
 

Emit HTML data.

#define BH_QHITS   (1 << 4) /**< Emit Gnutella query hits */
 

Emit Gnutella query hits.

#define BH_VERSION_MAJOR   1
 

The version of the Browse-Host protocol we support.

#define BH_VERSION_MINOR   0
 


Typedef Documentation

typedef void(* bh_closed_t)(gpointer arg)
 

typedef void(* bh_writable_t)(gpointer arg)
 


Function Documentation

struct special_ctx* browse_host_open gpointer  owner,
gnet_host_t host,
bh_writable_t  writable,
struct tx_deflate_cb deflate_cb,
struct tx_link_cb link_cb,
wrap_io_t wio,
gint  flags
 

Creates a new browse host context.

The context must be freed with browse_host_close().

Parameters:
owner the owner of the TX stack (the upload)
host the host to which we're talking to
writable no document
deflate_cb callbacks for the deflate layer
link_cb callbacks for the link layer
wio no document
flags opening flags
Returns:
An initialized browse host context.


Generated on Sun Feb 12 10:49:59 2006 for Gtk-Gnutella by doxygen 1.3.6