EGEE

Transfer related management functions


Functions

const char * glite_channel_get_endpoint (glite_transfer_ctx *ctx)
 Get the current endpoint used by the transfer context.
glite_channel_state glite_channel_state_parse (glite_transfer_ctx *ctx, const char *state)
 Converts the state-string to the proper ENUM value.
const char * glite_channel_state_str (glite_channel_state state)
 Converts the transfer-state variable to a human readable string.

Function Documentation

const char* glite_channel_get_endpoint ( glite_transfer_ctx ctx  ) 

Get the current endpoint used by the transfer context.

Parameters:
ctx The transfer context.
Returns:
The string containing the endpoint.

glite_channel_state glite_channel_state_parse ( glite_transfer_ctx ctx,
const char *  state 
)

Converts the state-string to the proper ENUM value.

Parameters:
ctx The transfer context. Only used for error handling.
state The state string to be converted.
Returns:
The glite_transfer_state type variable. NULL if there was an error.

const char* glite_channel_state_str ( glite_channel_state  state  ) 

Converts the transfer-state variable to a human readable string.

Parameters:
state The varible to be converted.
Returns:
The string containing the name of the state. "Unknown" in case the variable is not the name of a possible state.

The GLite Project. All rights reserved.