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

inet.h File Reference


Detailed Description

Pong caching (LimeWire's ping/pong reducing scheme).

Author:
Raphael Manfredi
Date:
2001-2003

#include "common.h"
#include "lib/host_addr.h"

Go to the source code of this file.

Functions

void inet_init (void)
 Initialization code.

void inet_close (void)
 Shutdown cleanup.

void inet_firewalled (void)
 Called when we enter the firewalled status (TCP).

void inet_udp_firewalled (void)
 Called when we enter the firewalled status (UDP).

gboolean inet_can_answer_ping (void)
 Check whether we can answer a ping with a pong.

void inet_got_incoming (const host_addr_t addr)
 Called when we got an incoming connection from another computer at `ip'.

void inet_read_activity (void)
 Called when reading activity occurred during a b/w scheduling period.

void inet_udp_got_incoming (const host_addr_t addr)
 Called when we got an incoming datagram from another computer at `ip'.

void inet_udp_record_sent (const host_addr_t addr)
 Record that we sent an UDP datagram to some host, thereby opening a breach on the firewall for the UDP reply.

void inet_connection_attempted (const host_addr_t addr)
 Called each time we attempt a connection.

void inet_connection_succeeded (const host_addr_t addr)
 Called each time a connection attempt succeeds.


Function Documentation

gboolean inet_can_answer_ping void   ) 
 

Check whether we can answer a ping with a pong.

Normally, when we're firewalled, we don't answer. However, if we have a non-private IP and are within a "grace period", act as if we were not: we can only know we're not firewalled when we get an incoming connection.

void inet_close void   ) 
 

Shutdown cleanup.

void inet_connection_attempted const host_addr_t  addr  ) 
 

Called each time we attempt a connection.

void inet_connection_succeeded const host_addr_t  addr  ) 
 

Called each time a connection attempt succeeds.

void inet_firewalled void   ) 
 

Called when we enter the firewalled status (TCP).

void inet_got_incoming const host_addr_t  addr  ) 
 

Called when we got an incoming connection from another computer at `ip'.

void inet_init void   ) 
 

Initialization code.

void inet_read_activity void   ) 
 

Called when reading activity occurred during a b/w scheduling period.

void inet_udp_firewalled void   ) 
 

Called when we enter the firewalled status (UDP).

void inet_udp_got_incoming const host_addr_t  addr  ) 
 

Called when we got an incoming datagram from another computer at `ip'.

void inet_udp_record_sent const host_addr_t  addr  ) 
 

Record that we sent an UDP datagram to some host, thereby opening a breach on the firewall for the UDP reply.


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