SpiecsEngine
 
Loading...
Searching...
No Matches

◆ RemoveConnectionInLoop()

void Spices::Net::TcpServer::RemoveConnectionInLoop ( const TcpConnectionPtr & connection)
private

Remove a TcpConnection InLoop.

Parameters
connectionTcpConnectionPtr.

Definition at line 97 of file TcpServer.cpp.

98 {
99 SPICES_CORE_INFO("TcpServer::RemoveConnectionInLoop")
100
101 m_Connections.erase(connection->GetName());
102 EventLoop* ioLoop = connection->GetLoop();
103 ioLoop->QueueInLoop([=]() { connection->ConnectDestroyed(); });
104 }
ConnectionMap m_Connections
All TcpConnections.
Definition TcpServer.h:175