⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 interface_qtcpmsgserver.h

📁 BCB下的高效开发包。包含大并发的网络库
💻 H
字号:
#ifndef Interface_QTcpMsgServerH
#define Interface_QTcpMsgServerH
#include <string>
//---------------------------------------------------------------------------
class IQTcpMsgServer
{
        public:
                virtual      __stdcall ~IQTcpMsgServer() {}
                virtual void __stdcall Release() = 0;
                
                virtual bool __stdcall Start(unsigned int Port, unsigned int MaxSession, const std::string& EndSign, unsigned int MaxPackage) = 0;
                virtual void __stdcall Stop(void) = 0;
                virtual bool __stdcall IsPowerOn(void)const = 0;
                virtual bool __stdcall Send(int SessionID, const std::string& Msg) = 0;
                virtual bool __stdcall GetQueuedMsg(int* pSessionID, std::string* pMsg) = 0;//当返回pMsg为空表示该Session断开,在GC机制下可以不理会
                virtual std::string __stdcall GetAddress(int SessionID)const = 0;
                virtual void __stdcall ShutDown(int SessionID) = 0;
                virtual void __stdcall Process(void) = 0;
                virtual void __stdcall ProcessGC(void) = 0;
                virtual void __stdcall SetTimeOut(unsigned int TimeOut) = 0;
                virtual bool __stdcall IsExist(int SessionID)const = 0;
                virtual unsigned int __stdcall GetCount(void)const = 0;
                virtual void __stdcall SetReadLastData(bool IsReadLast) = 0;
                virtual int  __stdcall PushSocket(int Sock) = 0;
        public:
                static IQTcpMsgServer* __stdcall Create(void);
};
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -