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

📄 warsvrprotocolhttpmsgs.cpp

📁 ftpserver very good sample
💻 CPP
字号:
#include "StdAfx.h"#if WAR_RFC2068#include "WarSvrProtocolHttpMsgs.h"   // class implementedusing namespace std;// NB: If you want to modify the server messages, do not// modify here - make a textfile with your messages, as// described in the documentationstatic const war_ccstr_t Msgs[WarSvrProtocolHttpEnums::HttpSvrMsgsE::INVALID +1] ={    {"Your IP address is not welcome here."}, // HSM_BAD_IP    {"Access denied."}, // HSM_ACCESS_DENIED    {"The command failed."}, // HSM_GENERIC_FAIL    {"HTTP header too long."}, // HSM_HEADER_TOO_LONG    {"Request type not implemented."}, // HSM_NOT_IMPLEMENTED	{"Page not found."}, // HSM_NOT_FOUND    {"User not permitted to service."}, // HSM_USER_NOT_PERMITTED_TO_SERVICE,     {"The username entered is too long. A security notice is logged."}, // HSM_TOO_LONG_USERNAME,     {"The password eneted is too ling. A security notice is logged."}, // HSM_TOO_LONG_PASSWORD,     {"The hostname in the HTTP header is too long. A security notice is logged."}, // HSM_TOO_LONG_HOSTNAME,     {"Too many connections from your account. Please try again later."}, // HSM_TOO_MANY_CONNECTIONS,     {"Too many connections from your IP."}, // HSM_TOO_MANY_CONNECTIONS_FROM_IP    {"Too many connections on server. Please try again later."}, //HSM_TOO_MANY_CONNECTIONS_TOTAL,     {"Internal server error."}, // HSM_INTERNAL_ERROR,      {"Too many failed logins from your IP. Access is denied."}, //HSM_TOO_MANY_FAILED_LOGINS,     {"You are not allowed to log in at this time of day."}, // HSM_TIME_OF_DAY_DENIAL,     {"Your IP number is blacklisted. Please go away."}, // HSM_IP_SHITLISTED,     {"Hackers are not welcome, and your IP number is noticed as the origin of attacks against this server. Please go away."}, // HSM_IP_MARKED_AS_HACKER,     {"The system si shutting down. Please try again later."}, // HSM_SYSTEM_SHUTDOWN,     {"Anonymous access is denied."}, // HSM_NO_ANONYMOUS_USERS,     {"Configuration error. The exact error is saved in the servers logfile."}, //HSM_CONFIGURATION_ERROR,     {""}};static const war_ccstr_t MacroNames[WarSvrProtocolHttpEnums::HttpSvrMsgsE::INVALID +1] = {    {"HSM_BAD_IP"},    {"HSM_ACCESS_DENIED"},    {"HSM_GENERIC_FAIL"},    {"HSM_HEADER_TOO_LONG"},    {"HSM_NOT_IMPLEMENTED"},	{"HSM_NOT_FOUND"},    {"HSM_USER_NOT_PERMITTED_TO_SERVICE"},    {"HSM_TOO_LONG_USERNAME"},    {"HSM_TOO_LONG_PASSWORD"},    {"HSM_TOO_LONG_HOSTNAME"},    {"HSM_TOO_MANY_CONNECTIONS"},    {"HSM_TOO_MANY_CONNECTIONS_FROM_IP"},    {"HSM_TOO_MANY_CONNECTIONS_TOTAL"},    {"HSM_INTERNAL_ERROR"},    {"HSM_TOO_MANY_FAILED_LOGINS"},    {"HSM_TIME_OF_DAY_DENIAL"},    {"HSM_IP_SHITLISTED"},    {"HSM_IP_MARKED_AS_HACKER"},    {"HSM_SYSTEM_SHUTDOWN"},    {"HSM_NO_ANONYMOUS_USERS"},    {"HSM_CONFIGURATION_ERROR"},    {"INVALID"}};const war_ccstr_t *WarSvrProtocolHttpMsgs::msDefMsg = Msgs;const war_ccstr_t *WarSvrProtocolHttpMsgs::msMacroName = MacroNames;const size_t WarSvrProtocolHttpMsgs::mArraySize    = WarSvrProtocolHttpEnums::HttpSvrMsgsE::INVALID;//============================= LIFECYCLE ====================================//============================= OPERATORS ====================================//============================= OPERATIONS ===================================//============================= ACCESS     ===================================//============================= INQUIRY    ===================================#endif // #if WAR_RFC2068

⌨️ 快捷键说明

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