You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
971 B
C

2 years ago
#ifndef __UDP_COMM_H_ICL__
#define __UDP_COMM_H_ICL__
#include "common.h"
//#include "resource.h"
void InitGlobalMember();
void GetHostIpAddr( void );
int GetSdsIpAddr( void );
void CreatUdpSetSock( void );
void CloseUdpSetSock( void );
int CheckIsMySelftIpAddr( u_long addr );
void SetUdpRecv( void );
int SetUdpSend( u_long ipaddr, char *buf, int len );
int FillAndSendCmd( u_long ipaddr, u_char port, WORD cmd, u_char *retbuf, int len );
void ValueToBuf( u_char *buf, u_long val, int len );
u_long BufToValue( u_char *buf, int len );
inline void WatchDataPutDispBuf(int port, WORD type, u_char *buf, int len)
{
}
inline void WatchDataPutDispBufToFile(int port, WORD type, u_char *buf, int len)
{
}
2 years ago
void SetUdpRecvDataProcess( u_long ipaddr, u_char *buf, int len );
void SetDevConfigFile(int blk);
int SetDevConfigFileEx(char *szPortConfigName, int blk);
void SetDevTime();
void ResetDev(int iDevNo);
inline BOOL isUdpSocketExist()
{
return 1;
}
2 years ago
#endif