📄 netmoduleinterface.h
字号:
// NetModuleInterface.h: interface for the CNetModuleInterface class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_NETMODULEINTERFACE_H__620DAE93_42BD_4321_BCF9_C7666A16484E__INCLUDED_)
#define AFX_NETMODULEINTERFACE_H__620DAE93_42BD_4321_BCF9_C7666A16484E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/*
ReadData说明:
1、len为szData的大小!!!!!
2、无须为szData清零
3、返回值说明:0,没读到数据,读缓冲区已经空;1,已经读取数据;-1,len为0,错误,
-2, 未启动或者未设置DLL
int ReadData(int &nOrderGroup,
int &nOrder,
char szData[], int &len, CString &ip, UINT &port);
void SendData(int nOrderGroup,
int nOrder,
char szData[], int len, CString ip, UINT port);
BOOL StartServer();
BOOL StopServer();
void SetNetInterfaceInfo(HWND hWnd,CString ip,UINT port,UINT message);
*/
typedef BOOL (_stdcall *STARTSERVER) ();
typedef BOOL (_stdcall *STOPSERVER) ();
typedef void (_stdcall *SETNETINTERFACEINFO)(HWND hWnd,CString ip,UINT port,UINT message);
typedef int (_stdcall *READDATA) (int&nOrderGroup,int&nOrder,char szData[],int&len,CString&ip,UINT&port);
typedef void (_stdcall *SENDDATA) (int nOrderGroup,int nOrder,char szData[],int len,CString ip,UINT port);
const char NetModuleInterfaceDLLName[]="NetInterface.dll";
class CNetModuleInterface
{
public:
CNetModuleInterface();
virtual ~CNetModuleInterface();
public:
STARTSERVER StartServer;
STOPSERVER StopServer;
SETNETINTERFACEINFO SetNetInterfaceInfo;
READDATA ReadData;
SENDDATA SendData;
public:
CString GetCurrentPath();
public:
HMODULE hModule;
};
#endif // !defined(AFX_NETMODULEINTERFACE_H__620DAE93_42BD_4321_BCF9_C7666A16484E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -