RoadRunner Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#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); |
void rr_channel_set_connection (RRChannel *channel, RRConnection *connection); |
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); |
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.
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.
void rr_channel_start_indication (RRChannel *channel, gpointer config_data); |
gboolean rr_channel_flush (RRChannel *channel, GError **error); |
Blocks until all outgoing frames/messages are sent.
channel : | A RRChannel |
error : | location to return an error of type RR_ERROR or RR_BEEP_ERROR. |
Returns : | TRUE on success, FALSE on failure. |