Raphael Manfredi
#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_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. |
|
Emit chunked data.
|
|
Deflate output.
|
|
gzip output
|
|
Emit HTML data.
|
|
Emit Gnutella query hits.
|
|
The version of the Browse-Host protocol we support.
|
|
|
|
|
|
|
|
Creates a new browse host context. The context must be freed with browse_host_close().
|