00001 #ifndef DN_SOCKET_H_ 00002 #define DN_SOCKET_H_ 00003 00036 #ifndef _DN_EXP_SOCKET 00037 #define _DN_EXP_SOCKET 00038 #endif /* _DN_EXP_SOCKET */ 00039 00040 #ifdef __cplusplus 00041 extern "C" { 00042 #endif 00043 00052 _DN_EXP_SOCKET HRESULT socket_open(int type, int *sock); 00053 00061 _DN_EXP_SOCKET HRESULT socket_close(int *sock); 00062 00069 _DN_EXP_SOCKET HRESULT socket_bind(const struct CONN_PARAM_ETH *param, int *sock); 00070 00077 _DN_EXP_SOCKET HRESULT socket_set_timeout(int sock, uint32_t timeout); 00078 00079 #ifdef __cplusplus 00080 } 00081 #endif 00082 00083 #endif /* DN_SOCKET_H_ */