|
Functions |
void | host_init (void) |
void | host_timer (void) |
| Periodic host heartbeat timer.
|
void | host_add (const host_addr_t addr, guint16, gboolean) |
| Add a new host to our pong reserve.
|
void | host_add_semi_pong (const host_addr_t addr, guint16 port) |
| Add a new host to our pong reserve, although the information here does not come from a pong but from a Query Hit packet, hence the port may be unsuitable for Gnet connections.
|
void | host_shutdown (void) |
| Signals that we're shutdowning and entering a grace period, during which we don't need to make any new connection.
|
void | host_close (void) |
const gchar * | host_to_string (const gnet_host_t *h) |
void | parse_netmasks (const gchar *value) |
| Break the netmaks string and convert them into network_pair elements in the local_networks array.
|
gboolean | host_is_nearby (const host_addr_t addr) |
gboolean | host_is_valid (const host_addr_t addr, guint16 port) |
| Check whether host is connectible.
|
guint | host_hash (gconstpointer key) |
| Hash function for use in g_hash_table_new.
|
gint | host_eq (gconstpointer v1, gconstpointer v2) |
| Compare function which returns TRUE if the hosts are equal.
|
gint | host_cmp (gconstpointer v1, gconstpointer v2) |
| Compare function which returns 0 if the hosts are equal, otherwise 1.
|
Variables |
GList * | sl_caught_hosts |
gboolean | host_low_on_pongs |
| True when less than 12% full.
|