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

📄 warclientsession.h

📁 ftpserver very good sample
💻 H
字号:
/** */#ifndef WAR_CLIENT_SESSION_H#define WAR_CLIENT_SESSION_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_SMART_POINTER_H#   include "WarSmartPointer.h"#endif#ifndef WAR_PTR_WRAPPER_H#   include "WarPtrWrapper.h"#endif#ifndef WAR_CLIENT_SESSION_DATA_H#	include "WarClientSessionData.h"#endif/* LOCAL INCLUDES *//* FORWARD REFERENCES */#ifdef __cplusplusextern "C" {#endif/****************** BEGIN OLD STYLE C spesific ********//****************** END OLD STYLE C spesific **********/#ifdef __cplusplus }#endif/****************** BEGIN C++ spesific ****************/#ifdef __cplusplusclass WarClientSession : public WarClientSessionData,public WarSmartPointer{public:    // LIFECYCLE        /**    * Default constructor.    */    WarClientSession(const std::string& siteName,         const std::string& userName,        const WarNetAddress& fromHost,        const war_uint64_t& fromSocketSeqId);	virtual ~WarClientSession();        // OPERATORS         bool operator == (const WarClientSession& from)    {        return (mName == from.mName)             && (mSite == from.mSite);    }    bool operator < (const WarClientSession& from)    {        int cmp_val = strcmp(mSite.c_str(), from.mSite.c_str());        if (0 > cmp_val)            return true;        if (0 < cmp_val)            return false;        return mName < from.mName;    }    // OPERATIONS    // CALLBACK    // ACCESS    // INQUIRYprotected:private:};/* INLINE METHODS *//* EXTERNAL REFERENCES */typedef WarPtrWrapper<WarClientSession> war_client_session_ptr_t;#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WAR_CLIENT_SESSION_H_ */

⌨️ 快捷键说明

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