Sm_AgentApi_ResourceContext_t
This structure defines a resource for protection and authorization.
casso127
This structure defines a resource for protection and authorization.
Syntax
This structure has the following format:
typedef struct Sm_AgentApi_ResourceContext_s{char lpszAgent[SM_AGENTAPI_SIZE_NAME];char lpszServer[SM_AGENTAPI_SIZE_NAME];char lpszAction[SM_AGENTAPI_SIZE_NAME];char lpszResource[SM_AGENTAPI_SIZE_URL];} Sm_AgentApi_ResourceContext_t;
Parameters
This structure has the following parameters:
- lpszAgentName of the Affiliate Agent holding the resource. This flag is reserved for working with Affiliate Agents. Leave this field blank.
- lpszServerOptional field, used to specify the name of the Web server hosting the Web resource—for example, www.myorg.org.
- lpszResoureName of the Web resource being requested—for example, /inventory/ .
- lpszActionType of action to be performed on the resource—for example, GET.