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

📄 warsvrprotocolftpmode.cpp

📁 ftpserver very good sample
💻 CPP
字号:
#include "StdAfx.h"#define WAR_FTP_OPTION_NAMES 1#include "WarSvrProtocolFtpMode.h"   // class implemented#ifndef WAR_COLLECTOR_H#   include "WarCollector.h"#endif/////////////////////////////// PUBLIC /////////////////////////////////////////============================= LIFECYCLE ====================================//============================= OPERATORS ====================================//============================= OPERATIONS ===================================//============================= ACCESS     ===================================//============================= INQUIRY    ===================================std::string WarSvrProtocolFtpMode::Explain() const{    WarCollector<char> buf;    buf << "Type=" << war_typenames[mType] << "; "        << "Form=" << war_formnames[mForm] << "; "        << "Stru=" << war_strunames[mStru] << "; "        << "Mode=" << war_modenames[mMode] << "; "        << "TransferOperation=" << war_trop_names[mTransferOperation] << "; "        << "ConnectionType=" << war_conn_modenames[mConnectionType] << "; "        << "RestartPos=" << mRestartPos << "; "        << "LocalAddress=" << mLocalAddress.Explain() << "; ";        if (!mPortAddress.IsEmpty())        buf << "PortAddress=" << mPortAddress.Explain() << "; ";    return buf.GetValue();}war_ccstr_t WarSvrProtocolFtpMode::GetTypeName() const{    if ((mType < TYPE_ASCII) || (mType > TYPE_INVALID))        WarThrow(WarError(WAR_ERR_OUT_OF_RANGE), NULL);    return war_typenames[mType];}war_ccstr_t WarSvrProtocolFtpMode::GetModeName() const{    if ((mType < TYPE_ASCII) || (mType > TYPE_INVALID))        WarThrow(WarError(WAR_ERR_OUT_OF_RANGE), NULL);    return war_modenames[mType];}war_ccstr_t WarSvrProtocolFtpMode::GetStructureName() const{    if ((mType < TYPE_ASCII) || (mType > TYPE_INVALID))        WarThrow(WarError(WAR_ERR_OUT_OF_RANGE), NULL);    return war_strunames[mType];}war_ccstr_t WarSvrProtocolFtpMode::GetFormName() const{    if ((mType < TYPE_ASCII) || (mType > TYPE_INVALID))        WarThrow(WarError(WAR_ERR_OUT_OF_RANGE), NULL);    return war_formnames[mType];}/////////////////////////////// PROTECTED  ////////////////////////////////////////////////////////////////// PRIVATE    ///////////////////////////////////

⌨️ 快捷键说明

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