Richard Eckart
#include "common.h"
#include "if/core/settings.h"
#include "lib/host_addr.h"
Go to the source code of this file.
Functions | |
host_addr_t | listen_addr (void) |
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. | |
void | settings_ask_for_property (const gchar *name, const gchar *value) G_GNUC_NORETURN |
Ask them to set a property to be able to run. | |
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) |
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 |
|
Ask them to set a property to be able to run.
|
|
Finally free all memory allocated. Call after settings_shutdown. |
|
|
|
Maximum message payload size we are configured to handle.
|
|
Save settings if dirty.
|
|
Called at exit time to flush the property files.
|
|
Global Data.
|