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.
38 lines
930 B
C
38 lines
930 B
C
|
|
|
|
#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 );
|
|
|
|
void WatchDataPutDispBuf( int port, WORD type, u_char *buf, int len );
|
|
void WatchDataPutDispBufToFile(int port, WORD type, u_char *buf, int len);
|
|
|
|
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);
|
|
|
|
BOOL isUdpSocketExist();
|
|
|
|
#endif |