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.

This function works as afdal_session_login but receiving an int value for the kernel port.

Parameters:
usr login user
passwd password associated
kernel_hostname hostname where af-kernel is running
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 login request is sent or FALSE if not.