Evd.StreamThrottle

g Evd.StreamThrottle Evd.StreamThrottle GObject.Object GObject.Object GObject.Object->Evd.StreamThrottle

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_actual_bandwidth ()

get_total ()

report (size)

request (size, wait)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

bandwidth

float

r/w

The maximum bandwidth in kilobytes

latency

float

r/w

The minimum time between two transfers, in miliseconds

total

int

r

Total sum of bytes ever reported to this stream-throttle

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class Evd.StreamThrottle(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Evd.StreamThrottleClass

classmethod new()
Return type:

Evd.StreamThrottle

get_actual_bandwidth()
Return type:

float

get_total()
Return type:

int

report(size)
Parameters:

size (int) –

request(size, wait)
Parameters:
  • size (int) –

  • wait (int) –

Return type:

int

Property Details

Evd.StreamThrottle.props.bandwidth
Name:

bandwidth

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The maximum bandwidth in kilobytes

Evd.StreamThrottle.props.latency
Name:

latency

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The minimum time between two transfers, in miliseconds

Evd.StreamThrottle.props.total
Name:

total

Type:

int

Default Value:

0

Flags:

READABLE

Total sum of bytes ever reported to this stream-throttle