![]() | ![]() | ![]() | Tentacles Reference Manual | ![]() |
---|
tnt-bandwidth-group —
#define TNT_BANDWIDTH_GROUP (object) struct TntBandwidthGroup; void tnt_bandwidth_group_init (TntBandwidthGroup *bandwidth_group); TntBandwidthGroup* tnt_bandwidth_group_new (void); void tnt_bandwidth_group_finalize (FluxObject *bandwidth_group); void tnt_bandwidth_group_iterate (TntBandwidthGroup *bandwidth_group); const gchar* tnt_bandwidth_group_get_name (TntBandwidthGroup *bandwidth_group); void tnt_bandwidth_group_set_name (TntBandwidthGroup *bandwidth_group, const gchar *name); void tnt_bandwidth_group_get_accept (TntBandwidthGroup *bandwidth_group, gchar **ip, gchar **netmask); void tnt_bandwidth_group_set_accept (TntBandwidthGroup *bandwidth_group, const gchar *ip, const gchar *netmask); gint tnt_bandwidth_group_get_goal (TntBandwidthGroup *bandwidth_group, TntTransferDirection dir); void tnt_bandwidth_group_set_goal (TntBandwidthGroup *bandwidth_group, TntTransferDirection dir, gint cps); void tnt_bandwidth_group_set_action_func (TntBandwidthGroup *bandwidth_group, TntBandwidthActionFunc *func, gpointer data); void tnt_bandwidth_group_set_update_func (TntBandwidthGroup *bandwidth_group, TntBandwidthGroupFunc *func, gpointer data); gint tnt_bandwidth_group_get_cps (TntBandwidthGroup *bandwidth_group, TntTransferDirection dir); gboolean tnt_bandwidth_group_have_edge (TntBandwidthGroup *bandwidth_group, TntEdge *edge); gboolean tnt_bandwidth_group_add_edge (TntBandwidthGroup *bandwidth_group, TntEdge *edge); gboolean tnt_bandwidth_group_remove_edge (TntBandwidthGroup *bandwidth_group, TntEdge *edge); gboolean tnt_bandwidth_group_match_ip (TntBandwidthGroup *bandwidth_group, TntNodeIP4 ip); gboolean tnt_bandwidth_group_match_edge (TntBandwidthGroup *bandwidth_group, TntEdge *edge);
struct TntBandwidthGroup { FluxObject object; gchar *name; TntNodeIP4 ip, netmask; gint goal_cps [TNT_TRANSFER_DIRECTION_NUM]; GList *edge_list; TntBandwidthAdjustment bandwidth_adjust_type [TNT_TRANSFER_DIRECTION_NUM]; TntTimeStamp bandwidth_adjust_changed_last [TNT_TRANSFER_DIRECTION_NUM]; TntBandwidthActionFunc *action_func; gpointer action_func_data; TntBandwidthGroupFunc *update_func; gpointer update_func_data; };
void tnt_bandwidth_group_init (TntBandwidthGroup *bandwidth_group);
bandwidth_group : |
void tnt_bandwidth_group_finalize (FluxObject *bandwidth_group);
bandwidth_group : |
void tnt_bandwidth_group_iterate (TntBandwidthGroup *bandwidth_group);
bandwidth_group : |
const gchar* tnt_bandwidth_group_get_name (TntBandwidthGroup *bandwidth_group);
bandwidth_group : | |
Returns : |
void tnt_bandwidth_group_set_name (TntBandwidthGroup *bandwidth_group, const gchar *name);
bandwidth_group : | |
name : |
void tnt_bandwidth_group_get_accept (TntBandwidthGroup *bandwidth_group, gchar **ip, gchar **netmask);
bandwidth_group : | |
ip : | |
netmask : |
void tnt_bandwidth_group_set_accept (TntBandwidthGroup *bandwidth_group, const gchar *ip, const gchar *netmask);
bandwidth_group : | |
ip : | |
netmask : |
gint tnt_bandwidth_group_get_goal (TntBandwidthGroup *bandwidth_group, TntTransferDirection dir);
bandwidth_group : | |
dir : | |
Returns : |
void tnt_bandwidth_group_set_goal (TntBandwidthGroup *bandwidth_group, TntTransferDirection dir, gint cps);
bandwidth_group : | |
dir : | |
cps : |
void tnt_bandwidth_group_set_action_func (TntBandwidthGroup *bandwidth_group, TntBandwidthActionFunc *func, gpointer data);
bandwidth_group : | |
func : | |
data : |
void tnt_bandwidth_group_set_update_func (TntBandwidthGroup *bandwidth_group, TntBandwidthGroupFunc *func, gpointer data);
bandwidth_group : | |
func : | |
data : |
gint tnt_bandwidth_group_get_cps (TntBandwidthGroup *bandwidth_group, TntTransferDirection dir);
bandwidth_group : | |
dir : | |
Returns : |
gboolean tnt_bandwidth_group_have_edge (TntBandwidthGroup *bandwidth_group, TntEdge *edge);
bandwidth_group : | |
edge : | |
Returns : |
gboolean tnt_bandwidth_group_add_edge (TntBandwidthGroup *bandwidth_group, TntEdge *edge);
bandwidth_group : | |
edge : | |
Returns : |
gboolean tnt_bandwidth_group_remove_edge (TntBandwidthGroup *bandwidth_group, TntEdge *edge);
bandwidth_group : | |
edge : | |
Returns : |
gboolean tnt_bandwidth_group_match_ip (TntBandwidthGroup *bandwidth_group, TntNodeIP4 ip);
bandwidth_group : | |
ip : | |
Returns : |
gboolean tnt_bandwidth_group_match_edge (TntBandwidthGroup *bandwidth_group, TntEdge *edge);
bandwidth_group : | |
edge : | |
Returns : |
<< tnt-edge | tnt-bandwidth-group-list >> |