AfDal Session Module: Session initialization and maintenance function.


Data Structures

struct  __AfDalSessionServer
 Single item node returned by afdal_session_get_servers. More...

Defines

#define AFDAL_SESSION_GET_SERVERS   "af_kernel::server::get_list"
 Reserved name for Af-Arch get servers service hosted on af-kernel.
#define AFDAL_SESSION_LOGIN   "af_kernel::session::login"
 Reserved name for Af-Arch login service hosted on af-kernel server.
#define AFDAL_SESSION_LOGOUT   "af_kernel::session::logout"
 Reserved name for Af-Arch logout service hosted on af-kernel server.
#define AFDAL_SESSION_NOP_SERVICE   "af_kernel::nop_service"
 Reserved name for Af-Arch nop service hosted and supported by every Af-Arch server node.
#define AFDAL_SESSION_REFRESH   "af_kernel::afkey::refresh"
 Reserved name for Af-Arch session refresh service hosted on af-kernel server.
#define AFDAL_SESSION_REGISTER   "af_kernel::server::register"
 Reserved name for Af-Arch register service hosted on af-kernel server.
#define AFDAL_SESSION_UNREGISTER   "af_kernel::server::unregister"
 Reserved service for Af-Arch unregister service hosted on af-kernel.
#define AFDAL_SESSION_UPDATE_SERVICES   "af_kernel::services::update"
 Reserved name for Af-Arch update services service hosted on af-kernel.

Typedefs

typedef __AfDalSessionServer AfDalSessionServer
 Single item node returned by afdal_session_get_servers.

Functions

GList * afdal_session_active_servers ()
 Returns a list of active servers returned by af-kernel central server.
void afdal_session_delete_connection (gchar *server_name)
 Delete the connection associated to the given logical server name.
gboolean afdal_session_do_a_nop (gchar *server, AfDalNulFunc usr_function, gpointer usr_data)
 Performs a nop operation against the given server.
void afdal_session_free_active_servers_list (GList *list)
 Destroy the list returned by afdal_session_active_servers.
VortexConnectionafdal_session_get_connection (gchar *server_name, GError **error)
 Returns a connection to the given logical server name.
gchar * afdal_session_get_host_location (gchar *server_name)
 Get current location for the given server_name.
gboolean afdal_session_get_permission (gchar *server_name, gchar *permission_name)
 Returns current status for the given permission associated to the given server for the current logged user.
GList * afdal_session_get_permission_list (gchar *server_name)
 Returns the permission list the current logged user have against the given server_name.
gint afdal_session_get_port_location (gchar *server_name)
 Get current location for the given server_name.
gchar * afdal_session_get_server_name (VortexConnection *connection)
 Returns the logical server name from the given connection.
gboolean afdal_session_get_servers (AfDalDataFunc usr_function, gpointer usr_data)
 Performs a request to get the current servers host location table.
gboolean afdal_session_login (gchar *usr, gchar *passwd, gchar *kernel_hostname, gchar *kernel_port, AfDalNulFunc usr_function, gpointer usr_data)
 Perform a login process against central server.
gboolean afdal_session_login2 (gchar *usr, gchar *passwd, gchar *kernel_hostname, gint kernel_port, AfDalNulFunc usr_function, gpointer usr_data)
 See afdal_session_login documentation.
gboolean afdal_session_logout (AfDalNulFunc usr_function, gpointer usr_data)
 Performs a logout from Af-Arch environment.
VortexConnectionafdal_session_new_connection (gchar *server_name, GError **error)
 Creates a new connection deleting the previous ones to the given logical server name.
gboolean afdal_session_refresh_session (gchar *passwd, AfDalNulFunc usr_function, gpointer usr_data)
 Performs an asynchronous session refresh.
gboolean afdal_session_register (gchar *name, gint version_number, gchar *host, gint port, gchar *kernel_hostname, gchar *kernel_port, AfDalNulFunc usr_function, gpointer usr_data)
 Peforms a register request agaisnt central server.
gboolean afdal_session_server_exists (gchar *server_name)
 Returns whenever the given server_name exists.
void afdal_session_server_free (AfDalSessionServer *pserv)
 Frees an AfDalSessionServer node.
gboolean afdal_session_unregister (AfDalNulFunc usr_function, gpointer usr_data)
 Perform an unregister request against central server.