|
Defines |
| #define | PPROXY(x) ((struct pproxy *) (x)) |
| #define | CPROXY_MAGIC 0xc8301U |
Functions |
| | RCSID ("$Id:pproxy.c, v 1.27 2005/10/21 17:39:06 cbiere Exp $") |
| void | send_pproxy_error (struct pproxy *pp, int code, const gchar *msg,...) G_GNUC_PRINTF(3 |
| | Send error message to requestor.
|
| void | pproxy_error_remove (struct pproxy *pp, int code, const gchar *msg,...) G_GNUC_PRINTF(3 |
| | Utility routine.
|
| void | pproxy_free_resources (struct pproxy *pp) |
| | Get rid of all the resources attached to the push-proxy struct.
|
| void | send_pproxy_error_v (struct pproxy *pp, const gchar *ext, int code, const gchar *msg, va_list ap) |
| | The vectorized (message-wise) version of send_pproxy_error().
|
| void | pproxy_remove_v (struct pproxy *pp, const gchar *reason, va_list ap) |
| | The vectorized (message-wise) version of pproxy_remove().
|
| void | pproxy_remove (struct pproxy *pp, const gchar *reason,...) |
| | Remove push proxy entry, log reason.
|
| void | pproxy_timer (time_t now) |
| | Push proxy timer.
|
| pproxy * | pproxy_create (struct gnutella_socket *s) |
| | pproxy_create
|
| gboolean | get_params (struct pproxy *pp, gchar *request, gchar **guid_atom, guint32 *file_idx) |
| | Extract GUID for push-proxyfication from the HTTP request line.
|
| 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.
|
| gchar * | validate_vendor (gchar *vendor, gchar *token, const host_addr_t addr) |
| | Validate vendor.
|
| void | pproxy_request (struct pproxy *pp, header_t *header) |
| | Called once all the HTTP headers have been read to proceed with the push proxyfication.
|
| void | err_line_too_long (gpointer obj) |
| void | err_header_error_tell (gpointer obj, gint error) |
| void | err_header_error (gpointer obj, gint error) |
| void | err_input_exception (gpointer obj) |
| void | err_input_buffer_full (gpointer obj) |
| void | err_header_read_error (gpointer obj, gint error) |
| void | err_header_read_eof (gpointer obj) |
| void | err_header_extra_data (gpointer obj) |
| void | call_pproxy_request (gpointer obj, header_t *header) |
| void | pproxy_add (struct gnutella_socket *s) |
| | Create new push-proxy request and begin reading HTTP headers.
|
| void | pproxy_close (void) |
| | Called a shutdown time.
|
| gboolean | cproxy_http_header_ind (gpointer handle, header_t *header, gint code, const gchar *message) |
| | HTTP async callback for header reception notification.
|
| size_t | cproxy_build_request (gpointer handle, gchar *buf, size_t len, const gchar *verb, const gchar *path, const gchar *host, guint16 port) |
| | Redefines the HTTP request building.
|
| void | cproxy_http_newstate (gpointer handle, http_state_t newstate) |
| | Invoked when the state of the HTTP async request changes.
|
| void | cproxy_free (struct cproxy *cp) |
| | Free the structure and all its dependencies.
|
| void | cproxy_http_error_ind (gpointer handle, http_errtype_t type, gpointer v) |
| | HTTP async callback for error notifications.
|
| cproxy * | cproxy_create (struct download *d, const host_addr_t addr, guint16 port, gchar *guid, guint32 file_idx) |
| | Create client proxy.
|
| void | cproxy_reparent (struct download *d, struct download *cd) |
| | Updates the proxy structures to point to the right download when a download was cloned.
|
Variables |
| GSList * | pproxies = NULL |
| | Currently active push-proxy requests.
|
| const struct io_error | pproxy_io_error |