_DN_EXP_TCP HRESULT tcp_open_server(void *param, int *sock)
Opens TCP server.
_DN_EXP_TCP HRESULT tcp_set_keepalive(int sock, int enable, uint32_t idle, uint32_t interval, uint32_t count)
Sets keep alive option.
_DN_EXP_TCP HRESULT tcp_set_nodelay(int sock, int enable)
Sets no delay option.
_DN_EXP_TCP HRESULT tcp_clear(int sock, uint32_t timeout)
Clears the received buffer.
_DN_EXP_TCP HRESULT tcp_recv(int sock, char *buf, uint32_t len_buf, uint32_t *len_recved, uint32_t timeout, void *arg)
Receives TCP packet.
_DN_EXP_TCP HRESULT tcp_set_timeout(int sock, uint32_t timeout)
Sets timeout value to the TCP socket.
_DN_EXP_TCP HRESULT tcp_send(int sock, const char *buf, uint32_t len_buf, void *arg)
Sends TCP packet.
_DN_EXP_TCP HRESULT tcp_accept(int sock, int *client)
TCP server accepts a TCP client.
_DN_EXP_TCP HRESULT tcp_close(int *sock)
Closes the socket.
_DN_EXP_TCP HRESULT tcp_open_client(void *param, int *sock)
Opens TCP client.