gint afdal_session_get_port_location gchar *  server_name  ) 
 

Get current location for the given server_name.

This function acts as a port location resolver. You must not free returned value. This is actually a pointer to a internal copy.

Parameters:
server_name The server name to resolv.
Returns:
Current port location for server_name. -1 if fail.