/builddir/build/BUILD/gfal2-2.0.0/src/common/srm/gfal_common_srm_endpoint.h File Reference

header file for internal use in the srm part, endpoint determination More...

#include "../gfal_prototypes.h"
#include "../gfal_types.h"
#include "gfal_common_srm.h"
#include "../gfal_constants.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

int gfal_srm_determine_endpoint (gfal_srmv2_opt *opts, const char *surl, char *buff_endpoint, size_t s_buff, enum gfal_srm_proto *srm_type, GError **err)
 extract endpoint and srm_type from a surl determine the best endpoint associated with the surl and the param of the actual handle (no bdii check or not) see the diagram in doc/diagrams/surls_get_endpoint_activity_diagram.svg for more informations
gboolean gfal_check_fullendpoint_in_surlG (const char *surl, GError **err)
int gfal_get_fullendpointG (const char *surl, char *buff_endpoint, size_t s_buff, GError **err)
 create a full endpoint from a "full-surl"
int gfal_select_best_protocol_and_endpointG (gfal_srmv2_opt *opts, char **tab_se_type, char **tab_endpoint, char *buff_endpoint, size_t s_buff, enum gfal_srm_proto *srm_type, GError **err)
int gfal_get_endpoint_and_setype_from_bdiiG (gfal_srmv2_opt *opts, const char *surl, char *buff_endpoint, size_t s_buff, enum gfal_srm_proto *srm_type, GError **err)
 get endpoint from the bdii system only
int gfal_get_hostname_from_surlG (const char *surl, char *buff_hostname, size_t s_buff, GError **err)
 get the hostname from a surl


Detailed Description

header file for internal use in the srm part, endpoint determination

Author:
Devresse Adrien
Version:
2.0
Date:
22/06/2011

Function Documentation

gboolean gfal_check_fullendpoint_in_surlG ( const char *  surl,
GError **  err 
)

return TRUE if a full endpoint is contained in surl else FALSE

int gfal_get_endpoint_and_setype_from_bdiiG ( gfal_srmv2_opt *  opts,
const char *  surl,
char *  buff_endpoint,
size_t  s_buff,
enum gfal_srm_proto *  srm_type,
GError **  err 
)

get endpoint from the bdii system only

Returns:
0 if success with endpoint and srm_type set correctly else -1 and err set

int gfal_get_hostname_from_surlG ( const char *  surl,
char *  buff_hostname,
size_t  s_buff,
GError **  err 
)

get the hostname from a surl

Returns:
return 0 if success else -1 and err is set

int gfal_select_best_protocol_and_endpointG ( gfal_srmv2_opt *  opts,
char **  tab_se_type,
char **  tab_endpoint,
char *  buff_endpoint,
size_t  s_buff,
enum gfal_srm_proto *  srm_type,
GError **  err 
)

select the best protocol choice and the best endpoint choice from a list of protocol and endpoints obtained by the bdii

int gfal_srm_determine_endpoint ( gfal_srmv2_opt *  opts,
const char *  surl,
char *  buff_endpoint,
size_t  s_buff,
enum gfal_srm_proto *  srm_type,
GError **  err 
)

extract endpoint and srm_type from a surl determine the best endpoint associated with the surl and the param of the actual handle (no bdii check or not) see the diagram in doc/diagrams/surls_get_endpoint_activity_diagram.svg for more informations

Returns:
return 0 with endpoint and types set if success else -1 and set Error


Generated on Wed May 16 16:46:34 2012 for CERN org.glite.Gfal by  doxygen 1.4.7