|
Data Structures |
| struct | prop_map |
| | The property maps contain informaiton about which widget should reflect which property. More...
|
Defines |
| #define | RESET_PROP_TM (10*60*1000) |
| | 10 minutes in ms
|
| #define | PROPERTY_MAP_SIZE G_N_ELEMENTS(property_map) |
Typedefs |
| typedef prop_map | prop_map_t |
Functions |
| void | settings_callbacks_init (void) |
| void | settings_callbacks_shutdown (void) |
| void | update_uptimes (void) |
| | Called at shutdown time to update the average_uptime property before saving the properties to disk.
|
| host_addr_t | listen_addr (void) |
| host_addr_t | listen_addr6 (void) |
| host_addr_t | listen_addr_by_net (enum net_type net) |
| gboolean | is_my_address (const host_addr_t addr) |
| gboolean | is_my_address_and_port (const host_addr_t addr, guint16 port) |
| gint | ensure_unicity (const gchar *file, gboolean check_only) |
| | Look for any existing PID file.
|
| void | save_pid (gint fd) |
| | Write our pid to the pidfile.
|
| void | settings_early_init (void) |
| | Initializes "config_dir" and "home_dir".
|
| gint | settings_ensure_unicity (gboolean check_only) |
| | 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) |
| const gchar * | settings_config_dir (void) |
| | Get the config directory.
|
| const gchar * | settings_home_dir (void) |
| | Gets the home dir.
|
| const gchar * | settings_ipc_dir (void) |
| | Gets the IPC directory.
|
| const gchar * | settings_local_socket_path (void) |
| | Gets the path of the local socket.
|
| enum net_type | settings_dns_net (void) |
| void | settings_remove_pidfile (void) |
| | Remove pidfile.
|
| void | addr_ipv4_changed (const host_addr_t new_addr, const host_addr_t peer) |
| void | addr_ipv6_changed (const host_addr_t new_addr, const host_addr_t peer) |
| 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_shutdown (void) |
| | Called at exit time to flush the property files.
|
| void | settings_save_if_dirty (void) |
| | Save settings if dirty.
|
| void | settings_close (void) |
| | Finally free all memory allocated.
|
| void | bw_stats (gnet_bw_stats_t *s, gboolean enabled, bsched_bws_t bws) |
| void | gnet_get_bw_stats (gnet_bw_source type, gnet_bw_stats_t *s) |
| 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.
|
| void | update_address_lifetime (void) |
| | Called whenever the IP address we advertise changed.
|
| 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.
|
| gboolean | up_connections_changed (property_t prop) |
| gboolean | max_connections_changed (property_t prop) |
| gboolean | max_hosts_cached_changed (property_t prop) |
| gboolean | max_ultra_hosts_cached_changed (property_t prop) |
| gboolean | max_bad_hosts_cached_changed (property_t prop) |
| host_addr_t | get_bind_addr (enum net_type net) |
| gboolean | enable_udp_changed (property_t prop) |
| gboolean | enable_local_socket_changed (property_t prop) |
| void | request_new_sockets (guint16 port, gboolean check_firewalled) |
| gboolean | listen_port_changed (property_t prop) |
| gboolean | network_protocol_changed (property_t prop) |
| gboolean | bw_switch (property_t prop, bsched_bws_t bs) |
| gboolean | bw_http_in_enabled_changed (property_t prop) |
| gboolean | bw_http_out_enabled_changed (property_t prop) |
| gboolean | bw_gnet_in_enabled_changed (property_t prop) |
| gboolean | bw_gnet_out_enabled_changed (property_t prop) |
| gboolean | bw_gnet_lin_enabled_changed (property_t prop) |
| gboolean | bw_gnet_lout_enabled_changed (property_t prop) |
| gboolean | node_sendqueue_size_changed (property_t unused_prop) |
| gboolean | scan_extensions_changed (property_t prop) |
| gboolean | file_path_changed (property_t prop) |
| gboolean | shared_dirs_paths_changed (property_t prop) |
| gboolean | local_netmasks_string_changed (property_t prop) |
| gboolean | hard_ttl_limit_changed (property_t prop) |
| gboolean | max_ttl_changed (property_t prop) |
| gboolean | bw_http_in_changed (property_t prop) |
| gboolean | bw_http_out_changed (property_t prop) |
| gboolean | bw_gnet_in_changed (property_t prop) |
| gboolean | bw_gnet_out_changed (property_t prop) |
| gboolean | bw_gnet_lin_changed (property_t prop) |
| gboolean | bw_gnet_lout_changed (property_t prop) |
| gboolean | bw_allow_stealing_changed (property_t prop) |
| gboolean | node_online_mode_changed (property_t prop) |
| gboolean | lib_debug_changed (property_t unused_prop) |
| gboolean | forced_local_ip_changed (property_t prop) |
| gboolean | local_addr_changed (property_t prop) |
| gboolean | configured_peermode_changed (property_t prop) |
| gboolean | current_peermode_changed (property_t prop) |
| gboolean | download_rx_size_changed (property_t prop) |
| gboolean | node_rx_size_changed (property_t prop) |
| void | reset_property_cb (cqueue_t *unused_cq, gpointer obj) |
| | callout queue callback
|
| gboolean | file_descriptor_x_changed (property_t prop) |
Variables |
| const gchar | config_file [] = "config_gnet" |
| const gchar | ul_stats_file [] = "upload_stats" |
| const mode_t | IPC_DIR_MODE = S_IRUSR | S_IWUSR | S_IXUSR |
| const mode_t | PID_FILE_MODE = S_IRUSR | S_IWUSR |
| const mode_t | CONFIG_DIR_MODE |
| gchar * | home_dir = NULL |
| gchar * | config_dir = NULL |
| prop_set_t * | properties = NULL |
| const gchar | pidfile [] = "gtk-gnutella.pid" |
| gboolean | settings_init_running |
| cevent_t * | ev_file_descriptor_shortage |
| cevent_t * | ev_file_descriptor_runout |
| prop_map_t | property_map [] |
| gboolean | init_list [GNET_PROPERTY_NUM] |