diff options
author | louiz’ <louiz@louiz.org> | 2016-11-15 00:23:19 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-11-15 00:23:19 +0100 |
commit | d872c2b49214c0a4db40a9e2d860802d9eedc563 (patch) | |
tree | cccd27de262b2823d126a48c82455d208696dbdc /louloulibs/network/tcp_client_socket_handler.hpp | |
parent | ed7e66471f7018f2e7e1c6a469e5cd758b913255 (diff) | |
download | biboumi-d872c2b49214c0a4db40a9e2d860802d9eedc563.tar.gz biboumi-d872c2b49214c0a4db40a9e2d860802d9eedc563.tar.bz2 biboumi-d872c2b49214c0a4db40a9e2d860802d9eedc563.tar.xz biboumi-d872c2b49214c0a4db40a9e2d860802d9eedc563.zip |
Support the ident protocol
fix #3211
Diffstat (limited to 'louloulibs/network/tcp_client_socket_handler.hpp')
-rw-r--r-- | louloulibs/network/tcp_client_socket_handler.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/louloulibs/network/tcp_client_socket_handler.hpp b/louloulibs/network/tcp_client_socket_handler.hpp index 7dd476c..3ad8ec3 100644 --- a/louloulibs/network/tcp_client_socket_handler.hpp +++ b/louloulibs/network/tcp_client_socket_handler.hpp @@ -31,6 +31,11 @@ class TCPClientSocketHandler: public TCPSocketHandler void close() override final; std::chrono::system_clock::time_point connection_date; + /** + * 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; + protected: bool hostname_resolution_failed; /** @@ -70,6 +75,8 @@ class TCPClientSocketHandler: public TCPSocketHandler */ std::string port; + uint16_t local_port; + bool connected; bool connecting; }; |