Details
enum RRRole
typedef enum {
RR_ROLE_LISTENER,
RR_ROLE_INITIATOR,
} RRRole; |
rr_connection_get_manager ()
Returns the manager channel (channel 0) for the given connection.
rr_connection_disconnect ()
gboolean rr_connection_disconnect (RRConnection *connection,
GError **error); |
Attempts to close the connection.
NOTE: connection will be unref:ed.
rr_connection_set_peer_profiles ()
void rr_connection_set_peer_profiles (RRConnection *connection,
GSList *list); |
Store a list of peer supported profiles in the connection object.
rr_connection_get_peer_profiles ()
const GSList* rr_connection_get_peer_profiles
(RRConnection *connection); |
Returns a list of profile uri's that the remote peer supports.
rr_connection_peer_supports_profile ()
gboolean rr_connection_peer_supports_profile
(RRConnection *connection,
GType profile); |
Determines if the remote peer supports the profile.
rr_connection_do_quiescence ()
void rr_connection_do_quiescence (RRConnection *connection,
GFunc callback,
gpointer data,
gpointer user_data); |
The callback function is called called when the outbound queues are empty.
rr_connection_wait_quiescence ()
gboolean rr_connection_wait_quiescence (RRConnection *connection,
GError **error); |
Blocks until all frames and messages in the out queue are sent.
rr_connection_get_channel ()
Finds and returns the RRChannel instance that has channel id on connection.
rr_connection_set_profile_registry ()
Give the connection a list of profiles to support.
rr_connection_get_server_name ()
const gchar* rr_connection_get_server_name (RRConnection *connection); |
Returns the "serverName" attribute for the first successful "start" element
received by a BEEP peer is meaningful for the duration of the BEEP
session.
rr_connection_set_server_name ()
void rr_connection_set_server_name (RRConnection *connection,
const gchar *server_name); |
Sets the serverName that is received from the BEEP peer.
rr_connection_send_frame ()
Enqueue a frame to be sent on connection, this function has higher priority
then rr_channel_send_frame and rr_channel_send_message. So frame will
be sent before frames and messages enqueued by those functions.
Note: The frame will be unref:ed after the transmission.
rr_connection_begin_tuning_reset ()
gboolean rr_connection_begin_tuning_reset
(RRConnection *connection,
GError **error); |
Warns the active channels that a tuning reset is pending by invoking
rr_channel_close_indication. If no channel objects then the connection
gets ready to receive a new greeting message.
rr_connection_complete_tuning_reset ()
Closes all open channels on connection. Sends a new greeting and waits
until a greeting from the other peer is received.
rr_connection_register_sender ()
Tells the connection that channel has some things to send.
rr_connection_add_channel ()
Adds channel to the list of channels started on the connection.
rr_connection_remove_channel ()
Removes channel from the list of channels started on the connection.
rr_connection_enable_input ()
gboolean rr_connection_enable_input (RRConnection *connection); |
Enable processing of incoming BEEP frames.
rr_connection_disable_input ()
gboolean rr_connection_disable_input (RRConnection *connection); |
Disable processing of incoming BEEP frames.
rr_connection_enable_output ()
gboolean rr_connection_enable_output (RRConnection *connection); |
Enable transmission of enqueued frames/messages.
rr_connection_disable_output ()
gboolean rr_connection_disable_output (RRConnection *connection); |
Disable transmission of enqueued frames/messages.
rr_connection_pending_transmissions_p ()
gboolean rr_connection_pending_transmissions_p
(RRConnection *connection); |
rr_connection_get_next_frame ()
rr_connection_get_languages ()
GSList* rr_connection_get_languages (RRConnection *connection); |
rr_connection_get_languages_str ()
gchar* rr_connection_get_languages_str (RRConnection *connection); |
rr_connection_language_supported ()
gboolean rr_connection_language_supported
(RRConnection *connection,
const gchar *lang); |
rr_connection_add_language ()
void rr_connection_add_language (RRConnection *connection,
const gchar *lang); |
rr_connection_remove_language ()
gboolean rr_connection_remove_language (RRConnection *connection,
const gchar *lang); |