Struct:ttHttpcAuthArgVector

Jump to: navigation, search
#define trsocket.h
 
/*
 * WWW-Authenticate parameter retrieval structure.
 * Parameters are of the form "name" or "name=value".
 * The "name" strings are in argNameVecPtr[].
 * Names are case-insensitive and have been converted to lowercase for easy comparison.
 * The "value" strings are in argValueVecPtr[].
 * If a parameter has no value, its argValueVecPtr[] contains a NULL pointer.
 * For known parameters, names are converted to integers and stored in argIdVecPtr[],
 * e.g. TM_HTTPC_AUTH_PARAM_REALM.
 * If the parameter name is unknown, its argIdVecPtr[] contains TM_HTTPC_AUTH_PARAM_UNSPEC.
 * The order of parameters in the arrays reflects the order they were encountered.
 */
typedef struct tsHttpcAuthArgVector
{
    int TM_FAR *            argIdVecPtr;    /* Array of parameter ids */
    char TM_FAR * TM_FAR *  argNameVecPtr;  /* Array of parameter names */
    char TM_FAR * TM_FAR *  argValueVecPtr; /* Array of parameter values */
    int                     argVecCount;    /* Array size (# of parameters) */
} ttHttpcAuthArgVector;
 
typedef ttHttpcAuthArgVector TM_FAR * ttHttpcAuthArgVectorPtr;
 
typedef ttHttpcAuthArgVectorPtr TM_FAR * ttHttpcAuthArgVectorPtrPtr;