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.

This function tries to register the given server (name and version_number) in the af-kernel defined by kernel_hostname and kernel_port. When server's response arrives usr_function will be called the given usr_data.

Actually this function is not needed to be called even while programming Af-Arch servers. This function is automatically called by Af-Arch layer when it is needed.

Parameters:
name Server name
version_number Server version
host Server's listening host
port Server's listening port
kernel_hostname Hostname where af-kernel lives
kernel_port Port where af-kernel is listening
usr_function Function to be executed when the server response arrives
usr_data User data passed to user_function
Returns:
TRUE if register request is sent or FALSE if not.