dn_udp.h
Go to the documentation of this file.
00001 #ifndef DN_UDP_H_
00002 #define DN_UDP_H_
00003 
00036 #ifndef _DN_EXP_UDP
00037 #define _DN_EXP_UDP
00038 #endif /* _DN_EXP_UDP */
00039 
00044 #define UDP_MAX_PACKET (503)
00045 
00050 #define UDP_MAX_DATA (488)
00051 
00056 struct udpaddr
00057 {
00058   int flag;                
00059   struct sockaddr_in addr; 
00060 };
00061 
00062 #ifdef __cplusplus
00063 extern "C"
00064 {
00065 #endif
00066 
00073   _DN_EXP_UDP HRESULT
00074   udp_open(void *param, int *sock);
00075 
00081   _DN_EXP_UDP HRESULT
00082   udp_close(int *sock);
00083 
00092   _DN_EXP_UDP HRESULT
00093   udp_send(int sock, const char *buf, uint32_t len_buf, void *arg);
00094 
00104   _DN_EXP_UDP HRESULT
00105   udp_recv(int sock, char *buf, uint32_t len_buf, uint32_t *len_recved,
00106       uint32_t timeout, void *arg);
00107 
00114   _DN_EXP_UDP HRESULT
00115   udp_set_timeout(int sock, uint32_t timeout);
00116 
00123   _DN_EXP_UDP HRESULT
00124   udp_clear(int sock, uint32_t timeout);
00125 
00132   _DN_EXP_UDP HRESULT
00133   udp_check_sockaddr(const struct sockaddr_in *sock_to,
00134       const struct sockaddr_in *sock_from);
00135 
00136 #ifdef __cplusplus
00137 }
00138 #endif
00139 
00140 #endif /* DN_UDP_H_ */


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