EvdStreamThrottle

EvdStreamThrottle

Synopsis

                    EvdStreamThrottle;
                    EvdStreamThrottleClass;
                    EvdStreamThrottlePrivate;
EvdStreamThrottle * evd_stream_throttle_new             (void);
gsize               evd_stream_throttle_request         (EvdStreamThrottle *self,
                                                         gsize size,
                                                         guint *wait);
void                evd_stream_throttle_report          (EvdStreamThrottle *self,
                                                         gsize size);
gfloat              evd_stream_throttle_get_actual_bandwidth
                                                        (EvdStreamThrottle *self);
guint64             evd_stream_throttle_get_total       (EvdStreamThrottle *self);

Object Hierarchy

  GObject
   +----EvdStreamThrottle

Properties

  "bandwidth"                gfloat                : Read / Write
  "latency"                  gfloat                : Read / Write
  "total"                    guint64               : Read

Description

Details

EvdStreamThrottle

typedef struct _EvdStreamThrottle EvdStreamThrottle;


EvdStreamThrottleClass

typedef struct {
  GObjectClass parent_class;
} EvdStreamThrottleClass;


EvdStreamThrottlePrivate

typedef struct _EvdStreamThrottlePrivate EvdStreamThrottlePrivate;


evd_stream_throttle_new ()

EvdStreamThrottle * evd_stream_throttle_new             (void);

Returns :


evd_stream_throttle_request ()

gsize               evd_stream_throttle_request         (EvdStreamThrottle *self,
                                                         gsize size,
                                                         guint *wait);

self :

size :

wait :

Returns :


evd_stream_throttle_report ()

void                evd_stream_throttle_report          (EvdStreamThrottle *self,
                                                         gsize size);

self :

size :


evd_stream_throttle_get_actual_bandwidth ()

gfloat              evd_stream_throttle_get_actual_bandwidth
                                                        (EvdStreamThrottle *self);

self :

Returns :


evd_stream_throttle_get_total ()

guint64             evd_stream_throttle_get_total       (EvdStreamThrottle *self);

self :

Returns :

Property Details

The "bandwidth" property

  "bandwidth"                gfloat                : Read / Write

The maximum bandwidth in kilobytes.

Allowed values: >= 0

Default value: 0


The "latency" property

  "latency"                  gfloat                : Read / Write

The minimum time between two transfers, in miliseconds.

Allowed values: >= 0

Default value: 0


The "total" property

  "total"                    guint64               : Read

Total sum of bytes ever reported to this stream-throttle.

Default value: 0