summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-02-25 22:52:58 +0100
committerlouiz’ <louiz@louiz.org>2020-02-25 22:52:58 +0100
commitb18d81ae9faf6adcf4020680bc5d874bf92848c8 (patch)
tree0c60da1c3eb599ffc236b0d51a461a89a4c48e7c /src/network
parentab7d1bbf02b40b1171d457961d8a082e0b6b5216 (diff)
downloadbiboumi-b18d81ae9faf6adcf4020680bc5d874bf92848c8.tar.gz
biboumi-b18d81ae9faf6adcf4020680bc5d874bf92848c8.tar.bz2
biboumi-b18d81ae9faf6adcf4020680bc5d874bf92848c8.tar.xz
biboumi-b18d81ae9faf6adcf4020680bc5d874bf92848c8.zip
Fix a typo in a function name (match_pairt)
It’s totally harmless
Diffstat (limited to 'src/network')
-rw-r--r--src/network/tcp_client_socket_handler.cpp2
-rw-r--r--src/network/tcp_client_socket_handler.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/tcp_client_socket_handler.cpp b/src/network/tcp_client_socket_handler.cpp
index 9dda73d..e5b1b75 100644
--- a/src/network/tcp_client_socket_handler.cpp
+++ b/src/network/tcp_client_socket_handler.cpp
@@ -261,7 +261,7 @@ std::string TCPClientSocketHandler::get_port() const
return this->port;
}
-bool TCPClientSocketHandler::match_port_pairt(const uint16_t local, const uint16_t remote) const
+bool TCPClientSocketHandler::match_port_pair(const uint16_t local, const uint16_t remote) const
{
const auto remote_port = static_cast<uint16_t>(std::stoi(this->port));
return this->is_connected() && local == this->local_port && remote == remote_port;
diff --git a/src/network/tcp_client_socket_handler.hpp b/src/network/tcp_client_socket_handler.hpp
index 74caca9..38d8b84 100644
--- a/src/network/tcp_client_socket_handler.hpp
+++ b/src/network/tcp_client_socket_handler.hpp
@@ -34,7 +34,7 @@ class TCPClientSocketHandler: public TCPSocketHandler
/**
* Whether or not this connection is using the two given TCP ports.
*/
- bool match_port_pairt(const uint16_t local, const uint16_t remote) const;
+ bool match_port_pair(const uint16_t local, const uint16_t remote) const;
protected:
bool hostname_resolution_failed;