summaryrefslogtreecommitdiff
path: root/src/irc/irc_client.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-11-11 02:54:48 +0100
committerlouiz’ <louiz@louiz.org>2016-11-11 02:54:48 +0100
commit0c8adc85f7373a85de8b3edc6cac87d5f7389bb3 (patch)
treeaefa90f4325424716b1304b4eac42d43371df1ca /src/irc/irc_client.hpp
parentc41d003cbf3b14b83e0f9bf6c4787c3bd60bb7ee (diff)
downloadbiboumi-0c8adc85f7373a85de8b3edc6cac87d5f7389bb3.tar.gz
biboumi-0c8adc85f7373a85de8b3edc6cac87d5f7389bb3.tar.bz2
biboumi-0c8adc85f7373a85de8b3edc6cac87d5f7389bb3.tar.xz
biboumi-0c8adc85f7373a85de8b3edc6cac87d5f7389bb3.zip
Move all the connect() logic from TCPSocketHandler into a subclass
This way, TCPSocketHandler only deal with the message sending/receiving, not the connect() or anything else. This will be used for implementing servers (because when a client is accepted, we don’t need all the connect() and dns resolution stuff).
Diffstat (limited to 'src/irc/irc_client.hpp')
-rw-r--r--src/irc/irc_client.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp
index 1b4d892..4edc32c 100644
--- a/src/irc/irc_client.hpp
+++ b/src/irc/irc_client.hpp
@@ -5,7 +5,7 @@
#include <irc/irc_channel.hpp>
#include <irc/iid.hpp>
-#include <network/tcp_socket_handler.hpp>
+#include <network/tcp_client_socket_handler.hpp>
#include <network/resolver.hpp>
#include <unordered_map>
@@ -23,7 +23,7 @@ class Bridge;
* Represent one IRC client, i.e. an endpoint connected to a single IRC
* server, through a TCP socket, receiving and sending commands to it.
*/
-class IrcClient: public TCPSocketHandler
+class IrcClient: public TCPClientSocketHandler
{
public:
explicit IrcClient(std::shared_ptr<Poller> poller, const std::string& hostname,