1
This commit is contained in:
parent
09aad454d6
commit
2a4941c0b1
@ -77,9 +77,9 @@ std::weak_ptr<DownStream> DownStreamMgr::GetDownStream(int sockhandle)
|
||||
return itr != socket_hash_.end() ? itr->second : nullptr;
|
||||
}
|
||||
|
||||
void DownStreamMgr::BindUpStream(int socket_handle, int conn_instance_id)
|
||||
void DownStreamMgr::BindUpStream(int socket_handle, int instance_id)
|
||||
{
|
||||
std::weak_ptr<UpStream> up_wp = UpStreamMgr::Instance()->GetUpStreamById(conn_instance_id);
|
||||
std::weak_ptr<UpStream> up_wp = UpStreamMgr::Instance()->GetUpStreamById(instance_id);
|
||||
if (!up_wp.expired()) {
|
||||
auto down_wp = GetDownStream(socket_handle);
|
||||
if (auto down = down_wp.lock(); !down_wp.expired()) {
|
||||
|
@ -18,7 +18,7 @@ class DownStreamMgr : public a8::Singleton<DownStreamMgr>
|
||||
void OnUpStreamDisconnect(int instance_id);
|
||||
void OnUpStreamConnect(int instance_id);
|
||||
std::weak_ptr<DownStream> GetDownStream(int sockhande);
|
||||
void BindUpStream(int socket_handle, int conn_instance_id);
|
||||
void BindUpStream(int socket_handle, int instance_id);
|
||||
void AddPendingAccount(const std::string& account_id, int socket_handle, long long req_tick);
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user