warclientsession.h

来自「ftpserver very good sample」· C头文件 代码 · 共 103 行

H
103
字号
/** */#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 + =
减小字号Ctrl + -
显示快捷键?