Update BoostConnection.h

This commit is contained in:
Ben Gräf 2018-06-12 11:39:40 +02:00 committed by GitHub
parent b379f21cb3
commit f4bd7c1ca3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,8 +57,10 @@ public:
boost::asio::ip::tcp::resolver::iterator endpointIterator)
{
if (!error) {
#ifdef APP_DEBUG
boost::asio::ip::tcp::endpoint endpoint = *endpointIterator;
#endif
LOG_DEBUG("[%s:%d] DNS resolved ", endpoint.address().to_string().c_str(), endpoint.port());
m_socket.connect(endpointIterator, boost::bind(&BoostConnection::handleConnect, this->shared_from_this(),
boost::asio::placeholders::error));
@ -159,4 +161,4 @@ private:
char receiveBuffer_[2048];
};
#endif /* __BOOSTCONNECTION_H__ */
#endif /* __BOOSTCONNECTION_H__ */