tnt-bandwidth-group

tnt-bandwidth-group —

Synopsis




#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);

Description

Details

TNT_BANDWIDTH_GROUP()

#define TNT_BANDWIDTH_GROUP(object) ((TntBandwidthGroup *) object)

object :

struct TntBandwidthGroup

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;
};


tnt_bandwidth_group_init ()

void        tnt_bandwidth_group_init        (TntBandwidthGroup *bandwidth_group);

bandwidth_group :

tnt_bandwidth_group_new ()

TntBandwidthGroup* tnt_bandwidth_group_new  (void);

Returns :

tnt_bandwidth_group_finalize ()

void        tnt_bandwidth_group_finalize    (FluxObject *bandwidth_group);

bandwidth_group :

tnt_bandwidth_group_iterate ()

void        tnt_bandwidth_group_iterate     (TntBandwidthGroup *bandwidth_group);

bandwidth_group :

tnt_bandwidth_group_get_name ()

const gchar* tnt_bandwidth_group_get_name   (TntBandwidthGroup *bandwidth_group);

bandwidth_group :
Returns :

tnt_bandwidth_group_set_name ()

void        tnt_bandwidth_group_set_name    (TntBandwidthGroup *bandwidth_group,
                                             const gchar *name);

bandwidth_group :
name :

tnt_bandwidth_group_get_accept ()

void        tnt_bandwidth_group_get_accept  (TntBandwidthGroup *bandwidth_group,
                                             gchar **ip,
                                             gchar **netmask);

bandwidth_group :
ip :
netmask :

tnt_bandwidth_group_set_accept ()

void        tnt_bandwidth_group_set_accept  (TntBandwidthGroup *bandwidth_group,
                                             const gchar *ip,
                                             const gchar *netmask);

bandwidth_group :
ip :
netmask :

tnt_bandwidth_group_get_goal ()

gint        tnt_bandwidth_group_get_goal    (TntBandwidthGroup *bandwidth_group,
                                             TntTransferDirection dir);

bandwidth_group :
dir :
Returns :

tnt_bandwidth_group_set_goal ()

void        tnt_bandwidth_group_set_goal    (TntBandwidthGroup *bandwidth_group,
                                             TntTransferDirection dir,
                                             gint cps);

bandwidth_group :
dir :
cps :

tnt_bandwidth_group_set_action_func ()

void        tnt_bandwidth_group_set_action_func
                                            (TntBandwidthGroup *bandwidth_group,
                                             TntBandwidthActionFunc *func,
                                             gpointer data);

bandwidth_group :
func :
data :

tnt_bandwidth_group_set_update_func ()

void        tnt_bandwidth_group_set_update_func
                                            (TntBandwidthGroup *bandwidth_group,
                                             TntBandwidthGroupFunc *func,
                                             gpointer data);

bandwidth_group :
func :
data :

tnt_bandwidth_group_get_cps ()

gint        tnt_bandwidth_group_get_cps     (TntBandwidthGroup *bandwidth_group,
                                             TntTransferDirection dir);

bandwidth_group :
dir :
Returns :

tnt_bandwidth_group_have_edge ()

gboolean    tnt_bandwidth_group_have_edge   (TntBandwidthGroup *bandwidth_group,
                                             TntEdge *edge);

bandwidth_group :
edge :
Returns :

tnt_bandwidth_group_add_edge ()

gboolean    tnt_bandwidth_group_add_edge    (TntBandwidthGroup *bandwidth_group,
                                             TntEdge *edge);

bandwidth_group :
edge :
Returns :

tnt_bandwidth_group_remove_edge ()

gboolean    tnt_bandwidth_group_remove_edge (TntBandwidthGroup *bandwidth_group,
                                             TntEdge *edge);

bandwidth_group :
edge :
Returns :

tnt_bandwidth_group_match_ip ()

gboolean    tnt_bandwidth_group_match_ip    (TntBandwidthGroup *bandwidth_group,
                                             TntNodeIP4 ip);

bandwidth_group :
ip :
Returns :

tnt_bandwidth_group_match_edge ()

gboolean    tnt_bandwidth_group_match_edge  (TntBandwidthGroup *bandwidth_group,
                                             TntEdge *edge);

bandwidth_group :
edge :
Returns :