#include "common.h"
#include "udp.h"
#include "gmsg.h"
#include "inet.h"
#include "nodes.h"
#include "sockets.h"
#include "bsched.h"
#include "gnet_stats.h"
#include "gnutella.h"
#include "mq_udp.h"
#include "routing.h"
#include "pcache.h"
#include "ntp.h"
#include "bogons.h"
#include "if/gnet_property_priv.h"
#include "lib/endian.h"
#include "lib/misc.h"
#include "lib/override.h"
Functions | |
RCSID ("$Id:udp.c, v 1.28 2005/11/07 09:02:30 cbiere Exp $") | |
gboolean | udp_is_valid_gnet (struct gnutella_socket *s, gboolean truncated) |
Look whether the datagram we received is a valid Gnutella packet. | |
void | udp_received (struct gnutella_socket *s, gboolean truncated) |
Notification from the socket layer that we got a new datagram. | |
void | udp_send_msg (gnutella_node_t *n, gpointer buf, gint len) |
Send a datagram to the specified node, made of `len' bytes from `buf', forming a valid Gnutella message. | |
void | udp_connect_back (const host_addr_t addr, guint16 port, const gchar *muid) |
Send a Gnutella ping to the specified host via UDP, using the specified MUID. | |
void | udp_send_ping (const host_addr_t addr, guint16 port) |
Send a Gnutella ping to the specified host. |
|
|
|
Send a Gnutella ping to the specified host via UDP, using the specified MUID.
|
|
Look whether the datagram we received is a valid Gnutella packet.
< Payload size, from the Gnutella message |
|
Notification from the socket layer that we got a new datagram. If `truncated' is true, then the message was too large for the socket buffer. |
|
Send a datagram to the specified node, made of `len' bytes from `buf', forming a valid Gnutella message.
|
|
Send a Gnutella ping to the specified host.
|