Description

Used for Offline activation mode. On a computer with Internet access, it sends an update request prepared in advance using the GrdLicenseCreateUpdateRequest() function to the Guardant license activation server. 

To save the activation request, the function allocates memory. To free the allocated memory, call the GrdFree function.

Syntax

int GRD_API GrdLicenseSendUpdateRequest(const void* request, 
										grd_uint32 requestSize, 
										const char* host, 
										grd_uint32 port, 
										void** outResponse, 
										grd_uint32* outResponseSize);

Parameters

request
Pointer to the update request buffer
requestSize
The size (in bytes) of the update request buffer
host
Pointer to a string buffer containing the address of the Guardant license activation server
port
Guardant license activation server port
outResponse
Pointer to the return value of the pointer to the response buffer from the server
outResponseSize
Pointer to the return value of the size (in bytes) of the response buffer from the server

Return values

GRD_OK

GRD_NO_UPDATES_AVAILABLE

GRD_REQUEST_FAILED

GRD_GET_RESPONSE_FAILED

GRD_SERVER_NOT_FOUND

GRD_INCORRECT_RESPONSE_DATA

GRD_ACTIVATION_NOT_AVAILABLE

GRD_INVALID_PARAMETER

  • No labels