GList* vortex_connection_get_remote_profiles VortexConnection connection  ) 
 

Returns the remote peer supported profiles.

When a Vortex connection is opened, remote server sends a list of BEEP supported profiles.

This is necessary to be able to create new channels. The profile selected for the channel to be created must be supported for both sides.

This function allows to get remote peer supported profiles. This can be helpful to avoid connection to a remote BEEP peers that actually doesn't support your profile.

You must not free the returned GList. As a example, you can use this function as follows:

 GList * profiles = NULL;
 int     iterator = 0;

 profiles = vortex_connection_get_remote_profiles (connection);
 g_print ("profiles for this peer: %d\n", g_list_length (profiles));
 list_aux = g_list_first (profiles);
 for (; list_aux; list_aux = g_list_next (list_aux)) {
     g_print ("  %d) %s\n", iterator, (gchar*) list_aux->data);
     iterator++;
 }

Parameters:
connection the connection to get remote peer profiles.
Returns:
A GList containing each element a uri identifying a remote peer profile.