SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ShutDown()

void Spices::Net::TcpConnection::ShutDown ( )

ShutDown socket.

Definition at line 64 of file TcpConnection.cpp.

65 {
67 {
69
70 m_IoLoop->RunInLoop([=]() { ShutDownInLoop(); });
71 }
72 }
void RunInLoop(Functor cb)
Push functor to pending functors.
Definition EventLoop.cpp:79
std::atomic< State > m_State
TcpConnection state.
void SetState(State state)
EventLoop * m_IoLoop
io Loop from TcpServer::NewConnection.
void ShutDownInLoop() const
ShutDown socket.

References Disconnecting, m_IoLoop, SetState(), and ShutDownInLoop().