MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / TryReconnect

Method TryReconnect

Source/Client/NM_Engine/NetClient.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void NetClient::TryReconnect(const boost::system::error_code& e)
51{
52 if (!e)
53 {
54 Connect(m_endpointStart);
55 }
56}
57bool NetClient::Connect(boost::asio::ip::tcp::resolver::iterator endpoint_iterator)
58{
59 boost::asio::async_connect(GetSocket(), m_endpointStart, boost::bind(&NetClient::HandleConnect, std::static_pointer_cast<NetClient>(shared_from_this()), boost::asio::placeholders::error, boost::asio::placeholders::iterator));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected