Send LaGK/LaGKQ command.
- Parameters
-
c | A pointer to yrmcds. |
key | Key data. |
key_len | Length of key . |
quiet | 0 to send LaGK, other values to send LaGKQ. |
serial | A pointer to uint32_t , or NULL . |
- Returns
- 0 if succeeded. Other values indicate an error.
This function sends LaGK/LaGKQ command to the server. Unlike yrmcds_lock_get(), the response to this request brings the key.
If serial
is not NULL
, the serial number of the request will be stored if the command was sent successfully.