feat():initial version
This commit is contained in:
35
insDavi2.0/include/Protocol/Cdu_TCP.h
Normal file
35
insDavi2.0/include/Protocol/Cdu_TCP.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user