VortexConnection * afdal_session_new_connection gchar *  server_name,
GError **  error

Creates a new connection deleting the previous ones to the given logical server name.

A shorter function to remove previously connection and create a new one. This function actually remove the connetion using afdal_session_delete_connection and then afdal_session_get_connection.

server_name The server name to connect to.
error A GError object (not recommended to use: deprecated)
the new connection or NULL if fails