dn_tcp.h
Go to the documentation of this file.
00001 #ifndef DN_TCP_H_
00002 #define DN_TCP_H_
00003 
00037 #ifndef _DN_EXP_TCP
00038 #define _DN_EXP_TCP
00039 #endif /* _DN_EXP_TCP */
00040 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00052   _DN_EXP_TCP HRESULT
00053   tcp_open_client(void *param, int *sock);
00054 
00061   _DN_EXP_TCP HRESULT
00062   tcp_open_server(void *param, int *sock);
00063 
00069   _DN_EXP_TCP HRESULT
00070   tcp_close(int *sock);
00071 
00080   _DN_EXP_TCP HRESULT
00081   tcp_send(int sock, const char *buf, uint32_t len_buf, void *arg);
00082 
00092   _DN_EXP_TCP HRESULT
00093   tcp_recv(int sock, char *buf, uint32_t len_buf, uint32_t *len_recved,
00094       uint32_t timeout, void *arg);
00095 
00102   _DN_EXP_TCP HRESULT
00103   tcp_set_timeout(int sock, uint32_t timeout);
00104 
00111   _DN_EXP_TCP HRESULT
00112   tcp_clear(int sock, uint32_t timeout);
00113 
00122   _DN_EXP_TCP HRESULT
00123   tcp_accept(int sock, int *client);
00124 
00134   _DN_EXP_TCP HRESULT
00135   tcp_set_keepalive(int sock, int enable, uint32_t idle, uint32_t interval,
00136       uint32_t count);
00137 
00144   _DN_EXP_TCP HRESULT
00145   tcp_set_nodelay(int sock, int enable);
00146 
00147 #ifdef __cplusplus
00148 }
00149 #endif
00150 
00151 #endif /* DN_TCP_H_ */


bcap_core
Author(s): DENSO WAVE INCORPORATED
autogenerated on Thu Jun 6 2019 21:00:03