Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Client Request PropertiesPropertyIdPropertyValueDescription
CLIENT_ID1stringUnique id for the client
ClIENT_READ_TIMEOUT2int32The client will wait for ClIENT_READ_TIMEOUT for server response.
DIFFIE_HELLMAN_KEY3byte[]The client Diffie-Hellman key if the credential is required to encrypt.

AuthRequest

The purpose of AuthRequest to authenticate the client connection. A client can send the auth request in the following format. Before sending the auth request a client can verify the server config by sending the ServerConfigRequest. A client can send key-value pair of credentials to authenticate itself. It needs to encrypt those pairs if Diffie-Hellman encryption is enabled at the server side.

 

AuthRequest

( NumberOfProperties PropertyId PropertyValue{ PropertyId PropertyValue}

| NumberOfEncryptedBytes EncryptedCredentials )

Description
NumberOfPropertiesfixedSize = 2 bytes, type = int16 
Propertyidbytes 
PropertyValuebytes 
EncrptedCredentialsbytes 


Examples

PutRequest

string regionName = "ExampleRegion"

...