bowen liu
/
mbed-os-example-blinky
ex
Fork of mbed-os-example-mbed5-blinky by
Embed:
(wiki syntax)
Show/hide line numbers
baidu_mbed_soc_wrapper.h
00001 // Copyright 2017 Baidu Inc. All Rights Reserved. 00002 // Author: Pan Haijun, Gang Chen(chengang12@baidu.com) 00003 // 00004 // This header file provide the wrapper of the socket APIs for http module. 00005 00006 #ifndef BAIDU_IOT_TINYDU_IOT_OS_SRC_HTTP_CLIENT_BAIDU_MBED_SOC_WRAPPER_H 00007 #define BAIDU_IOT_TINYDU_IOT_OS_SRC_HTTP_CLIENT_BAIDU_MBED_SOC_WRAPPER_H 00008 00009 #ifdef __cplusplus 00010 extern "C" { 00011 #endif 00012 int mbed_socket_init(void* socket_args); 00013 int mbed_socket_open(int socket_handle); 00014 int mbed_socket_connect(int socket_handle, const char* host, const int port); 00015 void mbed_socket_set_blocking(int socket_handle, int blocking); 00016 void mbed_socket_set_timeout(int socket_handle, int timeout); 00017 int mbed_socket_recv(int socket_handle, void* data, unsigned size); 00018 int mbed_socket_send(int socket_handle, const void* data, unsigned size); 00019 int mbed_socket_close(int socket_handle); 00020 void mbed_socket_destroy(int socket_handle); 00021 00022 #ifdef __cplusplus 00023 } 00024 #endif 00025 00026 #endif//BAIDU_IOT_TINYDU_IOT_OS_SRC_HTTP_CLIENT_BAIDU_MBED_SOC_WRAPPER_H 00027
Generated on Tue Jul 12 2022 16:28:52 by 1.7.2