EvdThrottledInputStream

EvdThrottledInputStream

Synopsis

struct              EvdThrottledInputStream;
struct              EvdThrottledInputStreamClass;
EvdThrottledInputStream * evd_throttled_input_stream_new
                                                        (GInputStream *base_stream);
gsize               evd_throttled_input_stream_get_max_readable
                                                        (EvdThrottledInputStream *self,
                                                         guint *retry_wait);
void                evd_throttled_input_stream_add_throttle
                                                        (EvdThrottledInputStream *self,
                                                         EvdStreamThrottle *throttle);
void                evd_throttled_input_stream_remove_throttle
                                                        (EvdThrottledInputStream *self,
                                                         EvdStreamThrottle *throttle);

Object Hierarchy

  GObject
   +----GInputStream
         +----GFilterInputStream
               +----EvdThrottledInputStream

Signals

  "delay-read"                                     : Action

Description

Details

struct EvdThrottledInputStream

struct EvdThrottledInputStream;


struct EvdThrottledInputStreamClass

struct EvdThrottledInputStreamClass {
  GFilterInputStreamClass parent_class;

  /* signal prototypes */
  void (* delay_read) (EvdThrottledInputStream *self,
                       guint                    wait,
                       gpointer                 user_data);
};


evd_throttled_input_stream_new ()

EvdThrottledInputStream * evd_throttled_input_stream_new
                                                        (GInputStream *base_stream);


evd_throttled_input_stream_get_max_readable ()

gsize               evd_throttled_input_stream_get_max_readable
                                                        (EvdThrottledInputStream *self,
                                                         guint *retry_wait);

retry_wait :

. [out]

evd_throttled_input_stream_add_throttle ()

void                evd_throttled_input_stream_add_throttle
                                                        (EvdThrottledInputStream *self,
                                                         EvdStreamThrottle *throttle);


evd_throttled_input_stream_remove_throttle ()

void                evd_throttled_input_stream_remove_throttle
                                                        (EvdThrottledInputStream *self,
                                                         EvdStreamThrottle *throttle);

Signal Details

The "delay-read" signal

void                user_function                      (EvdThrottledInputStream *evdthrottledinputstream,
                                                        guint                    arg1,
                                                        gpointer                 user_data)                    : Action

evdthrottledinputstream :

the object which received the signal.

user_data :

user data set when the signal handler was connected.