Main Page | Modules | Alphabetical List | Data Structures | Directories | 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 "special_upload.h"

Go to the source code of this file.

Defines

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

Enumerations

enum  {
  BH_F_DEFLATE = 1 << 0, BH_F_GZIP = 1 << 1, BH_F_CHUNKED = 1 << 2, BH_F_HTML = 1 << 3,
  BH_F_QHITS = 1 << 4
}
 Flags for browse_host_open(). More...

Functions

special_uploadbrowse_host_open (gpointer owner, struct gnutella_host *host, special_upload_writable_t writable, const struct tx_deflate_cb *deflate_cb, const struct tx_link_cb *link_cb, struct wrap_io *wio, gint flags)
 Creates a new browse host context.


Define Documentation

#define BH_VERSION_MAJOR   1
 

The version of the Browse-Host protocol we support.

#define BH_VERSION_MINOR   0
 


Enumeration Type Documentation

anonymous enum
 

Flags for browse_host_open().

Enumeration values:
BH_F_DEFLATE  Deflate output.
BH_F_GZIP  gzip output
BH_F_CHUNKED  Emit chunked data.
BH_F_HTML  Emit HTML data.
BH_F_QHITS  Emit Gnutella query hits.


Function Documentation

struct special_upload* browse_host_open gpointer  owner,
struct gnutella_host host,
special_upload_writable_t  writable,
const struct tx_deflate_cb deflate_cb,
const struct tx_link_cb link_cb,
struct wrap_io 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 Sat Jun 30 17:53:25 2007 for gtk-gnutella by  doxygen 1.3.9.1