#include <glib.h>
#include "if/core/pproxy.h"
Go to the source code of this file.
Data Structures | |
struct | pproxy |
A push proxy request we received. More... | |
Defines | |
#define | pproxy_vendor_str(p) ((p)->user_agent ? (p)->user_agent : "") |
Functions | |
void | pproxy_add (struct gnutella_socket *s) |
Create new push-proxy request and begin reading HTTP headers. | |
void | pproxy_remove (struct pproxy *pp, const gchar *reason,...) G_GNUC_PRINTF(2 |
void | pproxy_timer (time_t now) |
Push proxy timer. | |
void | pproxy_close (void) |
Called a shutdown time. | |
cproxy * | cproxy_create (struct download *d, const host_addr_t addr, guint16 port, gchar *guid, guint32 file_idx) |
Create client proxy. | |
void | cproxy_free (struct cproxy *cp) |
Free the structure and all its dependencies. | |
void | cproxy_reparent (struct download *d, struct download *cd) |
Updates the proxy structures to point to the right download when a download was cloned. | |
const gchar * | build_push (size_t *size_ptr, guint8 ttl, guint8 hops, const gchar *guid, host_addr_t addr, guint16 port, guint32 file_idx) |
Builds a push request to send. |
|
|
|
Builds a push request to send. We set TTL=max_ttl-1 and hops=1 since it does not come from our node really. The file ID may be set to 0, but it should be ignored when the GIV is received anyway.
|
|
Create client proxy.
|
|
Free the structure and all its dependencies.
|
|
Updates the proxy structures to point to the right download when a download was cloned.
|
|
Create new push-proxy request and begin reading HTTP headers.
|
|
Called a shutdown time.
|
|
|
|
Push proxy timer.
|