diff options
author | louiz’ <louiz@louiz.org> | 2017-07-08 14:04:35 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-07-08 14:04:35 +0200 |
commit | faed8952cb6ba063e5424364df69cef193fb736e (patch) | |
tree | c7a4b744db70bb12b7dca9fcc6f724ab0a6993da /src/network | |
parent | 7a9b2dca06c390531ec7f5d85e58cc27e17e7b74 (diff) | |
download | biboumi-faed8952cb6ba063e5424364df69cef193fb736e.tar.gz biboumi-faed8952cb6ba063e5424364df69cef193fb736e.tar.bz2 biboumi-faed8952cb6ba063e5424364df69cef193fb736e.tar.xz biboumi-faed8952cb6ba063e5424364df69cef193fb736e.zip |
Remove a bunch of useless string_literal usage
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/tcp_client_socket_handler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/tcp_client_socket_handler.cpp b/src/network/tcp_client_socket_handler.cpp index 35f2446..aac13d0 100644 --- a/src/network/tcp_client_socket_handler.cpp +++ b/src/network/tcp_client_socket_handler.cpp @@ -146,7 +146,7 @@ void TCPClientSocketHandler::connect(const std::string& address, const std::stri || errno == EISCONN) { log_info("Connection success."); - TimedEventsManager::instance().cancel("connection_timeout"s + + TimedEventsManager::instance().cancel("connection_timeout" + std::to_string(this->socket)); this->poller->add_socket_handler(this); this->connected = true; @@ -196,7 +196,7 @@ void TCPClientSocketHandler::connect(const std::string& address, const std::stri TimedEventsManager::instance().add_event( TimedEvent(std::chrono::steady_clock::now() + 5s, std::bind(&TCPClientSocketHandler::on_connection_timeout, this), - "connection_timeout"s + std::to_string(this->socket))); + "connection_timeout" + std::to_string(this->socket))); return ; } log_info("Connection failed:", std::strerror(errno)); @@ -220,7 +220,7 @@ void TCPClientSocketHandler::connect() void TCPClientSocketHandler::close() { - TimedEventsManager::instance().cancel("connection_timeout"s + + TimedEventsManager::instance().cancel("connection_timeout" + std::to_string(this->socket)); TCPSocketHandler::close(); |