1 /*
2 * Copyright (C) 2015-2018 Alibaba Group Holding Limited
3 */
4
5 #include <stdio.h>
6 #include <string.h>
7 #include <errno.h>
8 #include "aos/kernel.h"
9 #include "linkkit/wrappers/wrappers_defs.h"
10
11 #define PLATFORM_LOG_D(format, ...) \
12 do { \
13 printf("D: %d %s() | " format "\n", __LINE__, __func__, \
14 ##__VA_ARGS__); \
15 } while (0);
16
17 #define PLATFORM_LOG_E(format, ...) \
18 do { \
19 printf("E: %d %s() | " format "\n", __LINE__, __func__, \
20 ##__VA_ARGS__); \
21 } while (0);
22
HAL_TCP_Establish(_IN_ const char * host,_IN_ uint16_t port)23 uintptr_t HAL_TCP_Establish(_IN_ const char *host, _IN_ uint16_t port)
24 {
25 return 0;
26 }
HAL_TCP_Destroy(uintptr_t fd)27 int32_t HAL_TCP_Destroy(uintptr_t fd)
28 {
29 return 0;
30 }
HAL_TCP_Write(uintptr_t fd,const char * buf,uint32_t len,uint32_t timeout_ms)31 int32_t HAL_TCP_Write(uintptr_t fd, const char *buf, uint32_t len,
32 uint32_t timeout_ms)
33 {
34 return 0;
35 }
HAL_TCP_Read(uintptr_t fd,char * buf,uint32_t len,uint32_t timeout_ms)36 int32_t HAL_TCP_Read(uintptr_t fd, char *buf, uint32_t len, uint32_t timeout_ms)
37 {
38 return 0;
39 }
40