RRChannel

Name

RRChannel -- 

Synopsis



#define     RR_DEFAULT_WINDOW_SIZE
void        (*RRWorkFunc)                   (RRChannel *channel,
                                             gpointer data);
void        rr_channel_set_connection       (RRChannel *channel,
                                             RRConnection *connection);
RRConnection* rr_channel_get_connection     (RRChannel *channel);
gboolean    rr_channel_close_indication     (RRChannel *channel,
                                             gint code,
                                             const gchar *xml_lang,
                                             const gchar *diagnostic,
                                             GError **error);
void        rr_channel_close_confirmation   (RRChannel *channel,
                                             gint code,
                                             const gchar *xml_lang,
                                             const gchar *diagnostic);
void        rr_channel_frame_available      (RRChannel *channel,
                                             RRFrame *frame);
gboolean    rr_channel_send_frame           (RRChannel *channel,
                                             RRFrame *frame,
                                             GError **error);
gboolean    rr_channel_send_message         (RRChannel *channel,
                                             RRMessage *message,
                                             GError **error);
void        rr_channel_start_indication     (RRChannel *channel,
                                             gpointer config_data);
void        rr_channel_start_confirmation   (RRChannel *channel);
gboolean    rr_channel_flush                (RRChannel *channel,
                                             GError **error);
GObject*    rr_channel_get_active_item      (RRChannel *channel);
gboolean    rr_channel_remove_active_message
                                            (RRChannel *channel);
gboolean    rr_channel_out_queue_empty_p    (RRChannel *channel);
void        rr_channel_register_frame       (RRChannel *channel,
                                             RRFrame *frame);

Description

Details

RR_DEFAULT_WINDOW_SIZE

#define RR_DEFAULT_WINDOW_SIZE 8192


RRWorkFunc ()

void        (*RRWorkFunc)                   (RRChannel *channel,
                                             gpointer data);


rr_channel_set_connection ()

void        rr_channel_set_connection       (RRChannel *channel,
                                             RRConnection *connection);


rr_channel_get_connection ()

RRConnection* rr_channel_get_connection     (RRChannel *channel);


rr_channel_close_indication ()

gboolean    rr_channel_close_indication     (RRChannel *channel,
                                             gint code,
                                             const gchar *xml_lang,
                                             const gchar *diagnostic,
                                             GError **error);


rr_channel_close_confirmation ()

void        rr_channel_close_confirmation   (RRChannel *channel,
                                             gint code,
                                             const gchar *xml_lang,
                                             const gchar *diagnostic);


rr_channel_frame_available ()

void        rr_channel_frame_available      (RRChannel *channel,
                                             RRFrame *frame);


rr_channel_send_frame ()

gboolean    rr_channel_send_frame           (RRChannel *channel,
                                             RRFrame *frame,
                                             GError **error);

Enqueue frame for transmission on channel. Note: This function don't block until the frame is sent. And frame will be unref:ed after transmission.


rr_channel_send_message ()

gboolean    rr_channel_send_message         (RRChannel *channel,
                                             RRMessage *message,
                                             GError **error);

Enqueue message for transmission on channel. Note: This function don't block until the message is sent. And message will be unref:ed after transmission.


rr_channel_start_indication ()

void        rr_channel_start_indication     (RRChannel *channel,
                                             gpointer config_data);


rr_channel_start_confirmation ()

void        rr_channel_start_confirmation   (RRChannel *channel);


rr_channel_flush ()

gboolean    rr_channel_flush                (RRChannel *channel,
                                             GError **error);

Blocks until all outgoing frames/messages are sent.


rr_channel_get_active_item ()

GObject*    rr_channel_get_active_item      (RRChannel *channel);


rr_channel_remove_active_message ()

gboolean    rr_channel_remove_active_message
                                            (RRChannel *channel);


rr_channel_out_queue_empty_p ()

gboolean    rr_channel_out_queue_empty_p    (RRChannel *channel);


rr_channel_register_frame ()

void        rr_channel_register_frame       (RRChannel *channel,
                                             RRFrame *frame);