Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

udp.h File Reference


Detailed Description

Handling of UDP datagrams.

Author:
Raphael Manfredi
Date:
2004

#include <glib.h>
#include "lib/host_addr.h"

Go to the source code of this file.

Functions

void udp_received (struct gnutella_socket *s, gboolean truncated)
 Notification from the socket layer that we got a new datagram.

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_msg (struct gnutella_node *n, gpointer buf, gint len)
void udp_send_ping (const host_addr_t addr, guint16 port)
 Send a Gnutella ping to the specified host.


Function Documentation

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_received struct gnutella_socket s,
gboolean  truncated
 

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.

void udp_send_msg struct gnutella_node n,
gpointer  buf,
gint  len
 

void udp_send_ping const host_addr_t  addr,
guint16  port
 

Send a Gnutella ping to the specified host.


Generated on Sun Feb 12 10:50:08 2006 for Gtk-Gnutella by doxygen 1.3.6