shell登录鉴权改成广播方式

删除rtsp/rtmp shell命令,添加media命令
加载配置文件后发送广播
This commit is contained in:
xiongziliang
2018-02-08 17:24:42 +08:00
parent 3c40f171c1
commit 551b9a437b
8 changed files with 190 additions and 91 deletions

View File

@@ -48,22 +48,16 @@ public:
void onError(const SockException &err) override {};
void onManager() override;
static void addUser(const string &userName,const string &userPwd){
g_mapUser[userName] = userPwd;
}
private:
inline bool onCommandLine(const string &);
inline bool onAuth(const string &user, const string &pwd);
inline void pleaseInputUser();
inline void pleaseInputPasswd();
inline void printShellPrefix();
function<bool(const string &)> m_requestCB;
function<bool(const string &)> m_loginInterceptor;
string m_strRecvBuf;
Ticker m_beatTicker;
string m_strUserName;
static unordered_map<string, string> g_mapUser;
};
} /* namespace Shell */