mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
简化命名空间
This commit is contained in:
@@ -4,12 +4,9 @@
|
||||
|
||||
#include "Util/CMD.h"
|
||||
#include "Common/MediaSource.h"
|
||||
using namespace toolkit;
|
||||
|
||||
using namespace ZL::Util;
|
||||
using namespace ZL::Media;
|
||||
|
||||
namespace ZL {
|
||||
namespace Shell {
|
||||
namespace mediakit {
|
||||
|
||||
|
||||
class CMD_media: public CMD {
|
||||
@@ -94,5 +91,4 @@ static onceToken s_token([]() {
|
||||
}, nullptr);
|
||||
|
||||
|
||||
}/* namespace Shell */
|
||||
} /* namespace ZL */
|
||||
} /* namespace mediakit */
|
||||
@@ -29,12 +29,9 @@
|
||||
#include "Util/CMD.h"
|
||||
#include "Util/onceToken.h"
|
||||
#include "Util/NoticeCenter.h"
|
||||
using namespace toolkit;
|
||||
|
||||
using namespace Config;
|
||||
using namespace ZL::Util;
|
||||
|
||||
namespace ZL {
|
||||
namespace Shell {
|
||||
namespace mediakit {
|
||||
|
||||
ShellSession::ShellSession(const std::shared_ptr<ThreadPool> &_th,
|
||||
const Socket::Ptr &_sock) :
|
||||
@@ -47,7 +44,7 @@ ShellSession::~ShellSession() {
|
||||
|
||||
void ShellSession::onRecv(const Buffer::Ptr&buf) {
|
||||
//DebugL << hexdump(buf->data(), buf->size());
|
||||
GET_CONFIG_AND_REGISTER(uint32_t,maxReqSize,Config::Shell::kMaxReqSize);
|
||||
GET_CONFIG_AND_REGISTER(uint32_t,maxReqSize,Shell::kMaxReqSize);
|
||||
if (_strRecvBuf.size() + buf->size() >= maxReqSize) {
|
||||
WarnL << "接收缓冲区溢出!";
|
||||
shutdown();
|
||||
@@ -161,5 +158,4 @@ inline void ShellSession::printShellPrefix() {
|
||||
send(StrPrinter << _strUserName << "@" << SERVER_NAME << "# " << endl);
|
||||
}
|
||||
|
||||
}/* namespace Shell */
|
||||
} /* namespace ZL */
|
||||
}/* namespace mediakit */
|
||||
|
||||
@@ -31,13 +31,9 @@
|
||||
#include "Common/config.h"
|
||||
#include "Util/TimeTicker.h"
|
||||
#include "Network/TcpSession.h"
|
||||
using namespace toolkit;
|
||||
|
||||
using namespace std;
|
||||
using namespace ZL::Util;
|
||||
using namespace ZL::Network;
|
||||
|
||||
namespace ZL {
|
||||
namespace Shell {
|
||||
namespace mediakit {
|
||||
|
||||
class ShellSession: public TcpSession {
|
||||
public:
|
||||
@@ -60,7 +56,6 @@ private:
|
||||
string _strUserName;
|
||||
};
|
||||
|
||||
} /* namespace Shell */
|
||||
} /* namespace ZL */
|
||||
} /* namespace mediakit */
|
||||
|
||||
#endif /* SRC_SHELL_SHELLSESSION_H_ */
|
||||
|
||||
Reference in New Issue
Block a user