sessionmgr.h

来自「pimserver是syncml_vc开发包的服务器实例」· C头文件 代码 · 共 34 行

H
34
字号
// SessionMgr.h: interface for the CSessionMgr class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SESSIONMGR_H__45F29735_56DA_4696_AAB4_3A78F4D5E50A__INCLUDED_)
#define AFX_SESSIONMGR_H__45F29735_56DA_4696_AAB4_3A78F4D5E50A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SyncSession.h"
class CSessionMgr  
{
public:
	class CSessionNode
	{
	//	CSessionList(){self=0;next=0;}
	public:
		char * pSessName;
		CSyncSession* self;
		CSessionNode* next;
	};
	CSyncSession* GetActiveSession();
	CSessionNode* head;
    CSyncSession* active;
	CSessionMgr();
	virtual ~CSessionMgr();
	CSyncSession* GetSession(char* pID); //若不存在则创建这个session
	void DropSession(String_t pID);
	//static CSyncSession* m_pSess;
};

#endif // !defined(AFX_SESSIONMGR_H__45F29735_56DA_4696_AAB4_3A78F4D5E50A__INCLUDED_)

⌨️ 快捷键说明

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