19#include "hitls_build.h"
20#ifdef HITLS_BSL_SAL_NET
24#ifdef HITLS_BSL_SAL_LINUX
26#include <netinet/tcp.h>
33int32_t SAL_Write(int32_t fd,
const void *buf, uint32_t len, int32_t *err);
35int32_t SAL_Read(int32_t fd,
void *buf, uint32_t len, int32_t *err);
37int32_t SAL_Sendto(int32_t sock,
const void *buf,
size_t len, int32_t flags,
void *address, int32_t addrLen,
40int32_t SAL_Recvfrom(int32_t sock,
void *buf,
size_t len, int32_t flags,
void *address, int32_t *addrLen,
43int32_t SAL_SockAddrNew(BSL_SAL_SockAddr *sockAddr);
44int32_t SAL_SockAddrGetFamily(
const BSL_SAL_SockAddr sockAddr);
45void SAL_SockAddrFree(BSL_SAL_SockAddr sockAddr);
46uint32_t SAL_SockAddrSize(
const BSL_SAL_SockAddr sockAddr);
47void SAL_SockAddrCopy(BSL_SAL_SockAddr dst, BSL_SAL_SockAddr src);