Richard Eckart
#include "common.h"
#include "if/core/settings.h"
#include "lib/host_addr.h"
Go to the source code of this file.
Functions | |
| gboolean | is_my_address (const host_addr_t addr) |
| gboolean | is_my_address_and_port (const host_addr_t addr, guint16 port) |
| void | settings_early_init (void) |
| Initializes "config_dir" and "home_dir". | |
| gint | settings_ensure_unicity (gboolean silent) |
| Tries to ensure that the current process is the only running instance gtk-gnutella for the current value of GTK_GNUTELLA_DIR. | |
| void | settings_init (void) |
| void | settings_save_if_dirty (void) |
| Save settings if dirty. | |
| void | settings_shutdown (void) |
| Called at exit time to flush the property files. | |
| void | settings_addr_changed (const host_addr_t new_addr, const host_addr_t peer) |
| This routine is called when we determined that our IP was no longer the one we computed. | |
| guint32 | settings_max_msg_size (void) |
| Maximum message payload size we are configured to handle. | |
| void | settings_close (void) |
| Finally free all memory allocated. | |
| guint32 | get_average_servent_uptime (time_t now) |
| Compute the EMA of the averate servent uptime, up to now, but do not update the property. | |
| guint32 | get_average_ip_lifetime (time_t now, enum net_type net) |
| Compute the EMA of the IP address lifetime up to now, but do not update the property. | |
Variables | |
| in_addr * | local_netmasks |
| Global Data. | |
|
||||||||||||
|
Compute the EMA of the IP address lifetime up to now, but do not update the property.
|
|
|
Compute the EMA of the averate servent uptime, up to now, but do not update the property.
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
This routine is called when we determined that our IP was no longer the one we computed. We base this on some headers sent back when we handshake with other nodes, and as a result, cannot trust the information. What we do henceforth is trust 3 successive indication that our IP changed, provided we get the same information each time. --RAM, 13/01/2002
--cbiere, 2004-08-01 |
|
|
Finally free all memory allocated. Call after settings_shutdown. |
|
|
Initializes "config_dir" and "home_dir".
|
|
|
Tries to ensure that the current process is the only running instance gtk-gnutella for the current value of GTK_GNUTELLA_DIR.
|
|
|
|
|
|
Maximum message payload size we are configured to handle.
|
|
|
Save settings if dirty.
|
|
|
Called at exit time to flush the property files.
|
|
|
Global Data.
|
1.3.9.1