Files
Cluster/insDavi2.0/include/Protocol/Cdu_TCP.h
2026-04-17 18:22:45 +08:00

36 lines
746 B
C

#ifndef CDU_TCP_H_INCLUDED
#define CDU_TCP_H_INCLUDED
#include <InsCfg.h>
#include <BaseTypes.h>
#ifndef CduTcpApi
#ifndef CDU_TCP_IMPLEMENT
#define CduTcpApi extern
#else
#define CduTcpApi
#endif // CDU_TCP_IMPLEMENT
#endif // CduTcpApi
#ifdef COMPILE_IN_WINDOWS
#include <winsock2.h> //SOCKET
CduTcpApi void CDU_TCP_Serve(SOCKET sockfd, const Bool *quitFlg);
#else
#include <sys/socket.h>
#include <arpa/inet.h>
CduTcpApi void CDU_TCP_Serve(Int32 sockfd, const Bool *quitFlg);
#endif // COMPILE_IN_WINDOWS
CduTcpApi void CDU_TCP_SetInitialValue();
CduTcpApi void CDU_TCP_EndServe();
//CduTcpApi void CDU_TCP_ProcessData(UInt08 srvType);
//CduTcpApi Int32 CDU_TCP_VerifyAndStore(UInt08 id, UInt08 *data);
#endif // CDU_TCP_H_INCLUDED