123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #include "SessionIdManager.h"
- #include "ExternalNetInterface.h"
- #include "ErrorCode.h"
- #include "NetThreadManager.h"
- #include "PushObjectManager.h"
- int CSessionIdManager::SetSessionId(string stringSessionId)
- {
- CNetThreadManager::SetSessionId(stringSessionId);
- CPushObjectManager::SetSessionId(stringSessionId);
- return PHMS_SUCCESSFUL_RESULT;
- }
- int CSessionIdManager::GetSessionId(string& stringSessionId)
- {
- int nRet = PHMS_SUCCESSFUL_RESULT;
- nRet = CNetThreadManager::GetSessionId(stringSessionId);
- if(nRet == COMMON_NO_VALID_SESSIONID)
- {
- return nRet=CPushObjectManager::GetSessionId(stringSessionId);
- }
- return nRet;
- }
- void CSessionIdManager::HandleSessionSync(string stringSessionId)
- {
- CNetThreadManager::HandleSessionSync(stringSessionId);
- CPushObjectManager::HandleSessionSync(stringSessionId);
- }
- int CSessionIdManager::SetGWSessionId(string stringSessionId)
- {
- CNetThreadManager::SetGWSessionId(stringSessionId);
- return PHMS_SUCCESSFUL_RESULT;
- }
- int CSessionIdManager::GetGWSessionId(string& stringSessionId)
- {
- return CNetThreadManager::GetGWSessionId(stringSessionId);
- }
- void CSessionIdManager::HandleGWSessionSync(string stringSessionId)
- {
- CNetThreadManager::HandleGWSessionSync(stringSessionId);
- }
|