10 #ifndef _AIOT_SYSDEP_API_H_    11 #define _AIOT_SYSDEP_API_H_    13 #if defined(__cplusplus)    27     aiot_sysdep_network_cred_option_t 
option;  
    76     void    *(*core_sysdep_malloc)(uint32_t size, 
char *name);
    80     void (*core_sysdep_free)(
void *ptr);
    84     uint64_t (*core_sysdep_time)(void);
    88     void (*core_sysdep_sleep)(uint64_t time_ms);
    92     void    *(*core_sysdep_network_init)(void);
    97     int32_t (*core_sysdep_network_setopt)(
void *handle, core_sysdep_network_option_t option, 
void *data);
   101     int32_t (*core_sysdep_network_establish)(
void *handle);
   105     int32_t (*core_sysdep_network_recv)(
void *handle, uint8_t *buffer, uint32_t len, uint32_t timeout_ms,
   110     int32_t (*core_sysdep_network_send)(
void *handle, uint8_t *buffer, uint32_t len, uint32_t timeout_ms,
   115     int32_t (*core_sysdep_network_deinit)(
void **handle);
   119     void (*core_sysdep_rand)(uint8_t *output, uint32_t output_len);
   123     void    *(*core_sysdep_mutex_init)(void);
   127     void (*core_sysdep_mutex_lock)(
void *mutex);
   131     void (*core_sysdep_mutex_unlock)(
void *mutex);
   135     void (*core_sysdep_mutex_deinit)(
void **mutex);
   141 #if defined(__cplusplus) Definition: aiot_sysdep_api.h:52
 
Definition: aiot_sysdep_api.h:46
 
Definition: aiot_sysdep_api.h:55
 
char * psk
Definition: aiot_sysdep_api.h:48
 
uint32_t x509_server_cert_len
Definition: aiot_sysdep_api.h:31
 
Definition: aiot_sysdep_api.h:53
 
uint16_t port
Definition: aiot_sysdep_api.h:64
 
Definition: aiot_sysdep_api.h:59
 
aiot_sysdep_network_cred_option_t option
Definition: aiot_sysdep_api.h:27
 
Definition: aiot_sysdep_api.h:56
 
Definition: aiot_sysdep_api.h:57
 
Definition: aiot_sysdep_api.h:41
 
aiot_sysdep_portfile_t * aiot_sysdep_get_portfile(void)
 
aiot_sysdep_network_cred_option_t
Definition: aiot_sysdep_api.h:19
 
uint32_t max_tls_fragment
Definition: aiot_sysdep_api.h:28
 
Definition: aiot_sysdep_api.h:20
 
用以向SDK描述其运行硬件平台的资源如何使用的方法结构体 
Definition: aiot_sysdep_api.h:72
 
Definition: aiot_sysdep_api.h:54
 
core_sysdep_socket_type_t
Definition: aiot_sysdep_api.h:39
 
Definition: aiot_sysdep_api.h:43
 
core_sysdep_network_option_t
Definition: aiot_sysdep_api.h:51
 
Definition: aiot_sysdep_api.h:40
 
char * tls_extend_info
Definition: aiot_sysdep_api.h:36
 
const char * x509_client_cert
Definition: aiot_sysdep_api.h:32
 
const char * x509_client_privkey
Definition: aiot_sysdep_api.h:34
 
Definition: aiot_sysdep_api.h:42
 
const char * x509_server_cert
Definition: aiot_sysdep_api.h:30
 
Definition: aiot_sysdep_api.h:22
 
uint32_t x509_client_cert_len
Definition: aiot_sysdep_api.h:33
 
char * psk_id
Definition: aiot_sysdep_api.h:47
 
uint32_t x509_client_privkey_len
Definition: aiot_sysdep_api.h:35
 
uint8_t sni_enabled
Definition: aiot_sysdep_api.h:29
 
void aiot_sysdep_set_portfile(aiot_sysdep_portfile_t *portfile)
 
Definition: aiot_sysdep_api.h:58
 
Definition: aiot_sysdep_api.h:26
 
Definition: aiot_sysdep_api.h:21
 
Definition: aiot_sysdep_api.h:62
 
Definition: aiot_sysdep_api.h:23