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

📄 warsessionmanagerplugins.cpp

📁 ftpserver very good sample
💻 CPP
字号:
#include "StdAfx.h"#include "WarSessionManagerPlugins.h"   // class implemented/////////////////////////////// PUBLIC ///////////////////////////////////////void WarSessionManager_WarSvrEngine_OnAccept::OnProcess(    const WarError& status,    war_socket_t newSocket,    const WarNetAddress& remoteAddress,    const WarNetAddress& localAddress,    WarSvrEngineSocket *pListenSck)     throw (WarException){    mpManager->OnAccept(status,        newSocket,        remoteAddress,        localAddress,        pListenSck);}void WarSessionManager_WarSvrProtocol_OnClientConnect::OnProcess(    WarSvrProtocol *pSvrProtocol)     throw (WarException){    mpManager->OnClientConnect(pSvrProtocol);}void WarSessionManager_WarSvrProtocol_OnLoginPostAuth::OnProcess(    WarSvrProtocol *pSvrProtocol,    war_ccstr_t virtualHost, // Supplied by client    war_ccstr_t userName, // Supplied by client    war_ccstr_t userPasswd, // Supplied by client    std::string& useUserName, // Used during authentication    WarCollector<char>& useUserPasswd, // Used during authentication    std::string& useVirtualHost, // Used during authentication    WarSvrEnums::WarLoginResultE& loginResult, // Result from authentication    war_auth_ptr_t& auth_module_ptr, // Result from authentication    war_authdata_ptr_t& session_data_ptr) // Result from authentication    throw (WarException){    mpManager->OnPostLogin(useUserName,        pSvrProtocol,         session_data_ptr,        mNumFailedLoginAttepmts,         loginResult);    if (WarSvrEnums::LF_OK == loginResult)        mCurrentSucceededSession = pSvrProtocol->mSessionPtr;}WarSessionManager_WarSvrProtocol_OnLoginPostAuth::~WarSessionManager_WarSvrProtocol_OnLoginPostAuth(){    if (mCurrentSucceededSession)        mpManager->OnClientLogoff(mCurrentSucceededSession);}void WarSessionManager_WarSvrProtocol_OnLogout::OnProcess(    WarSvrProtocol *pSvrProtocol)        throw (WarException){    if (pSvrProtocol->mSessionPtr)        mpManager->OnClientLogoff(pSvrProtocol->mSessionPtr);}

⌨️ 快捷键说明

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