IOTC Platform  Ver: 4.3.6.2-0-ge1f616e
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
AVServStartInConfig Struct Reference

#include <AVServer.h>

Data Fields

uint32_t cb
 
uint32_t iotc_session_id
 
uint8_t iotc_channel_id
 
uint32_t timeout_sec
 
uint32_t server_type
 
int32_t resend
 
AvSecurityMode security_mode
 
avPasswordAuthFn password_auth
 
avTokenAuthFn token_auth
 
avTokenRequestFn token_request
 
avTokenDeleteFn token_delete
 
avIdentityArrayRequestFn identity_array_request
 
avAbilityRequestFn ability_request
 
avChangePasswordRequestFn change_password_request
 
avRecvJSONCtrlRequestFn json_request
 
const char * dtls_cipher_suites
 
int32_t disable_fec
 
int32_t accept_empty_password
 

Detailed Description

The input configuration of avServStartEx

Parameters
cb[in] The check byte of this structure.
iotc_session_id[in] The session ID of the IOTC session to create AV server
iotc_channel_id[in] The channel ID of the channel to create AV server
timeout_sec[in] The timeout for this function in unit of second. Specify it as 0 will make AV server start process wait until an AV client connects successfully.
server_type[in] The user-defined service type. An AV client will get this value when it invokes avClientStart() successfully.
resend[in] Enabling the Resend mechanism or not
security_mode[in] Security mode with options
password_auth[in] The function pointer of password authentication function
token_auth[in] The function pointer of token authentication function
token_request[in] The function pointer will be called if avClientRequestTokenWithIdentity is called in client side to request a token
token_delete[in] The function pointer will be called if avClientRequestDeleteTokenWithIdentity is called in client side to delete a token
identity_array_request[in] The function pointer will be called if avClientRequestIdentityArray is called in client side to request the identity list
ability_request[in] The function pointer will be called if avClientRequestServerAbility is called in client side to request server ability
change_password_request[in] The function pointer will be called if avClientRequestChangeServerPassword is called in client side to request server change password
dtls_cipher_suites[in] Setup DTLS cipher suites. Please use the name of cipher suites from OpenSSL and ":" to separate each cipher suite. If you are using mbedtls as 3rd party library, currently, we only support setting it as "PSK-AES128-CBC-SHA256".

Field Documentation

avAbilityRequestFn ability_request
int32_t accept_empty_password
uint32_t cb
avChangePasswordRequestFn change_password_request
int32_t disable_fec
const char* dtls_cipher_suites
avIdentityArrayRequestFn identity_array_request
uint8_t iotc_channel_id
uint32_t iotc_session_id
avPasswordAuthFn password_auth
int32_t resend
AvSecurityMode security_mode
uint32_t server_type
uint32_t timeout_sec
avTokenAuthFn token_auth
avTokenDeleteFn token_delete
avTokenRequestFn token_request

The documentation for this struct was generated from the following file: