#ifndef CDU_TCP_H_INCLUDED #define CDU_TCP_H_INCLUDED #include #include #ifndef CduTcpApi #ifndef CDU_TCP_IMPLEMENT #define CduTcpApi extern #else #define CduTcpApi #endif // CDU_TCP_IMPLEMENT #endif // CduTcpApi #ifdef COMPILE_IN_WINDOWS #include //SOCKET CduTcpApi void CDU_TCP_Serve(SOCKET sockfd, const Bool *quitFlg); #else #include #include 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