简化命名空间

This commit is contained in:
xiongziliang
2018-10-24 17:17:55 +08:00
parent ed1402e9d6
commit 9f16cc1201
133 changed files with 446 additions and 788 deletions

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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_ */