summaryrefslogtreecommitdiff
path: root/src/irc/irc_client.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-07-02 03:01:09 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-07-02 03:01:09 +0200
commit04d999168ac4629f5e49939f3659b32b2da2563d (patch)
treedf11fefd719aaa82a7d20f53dd01894770b64eba /src/irc/irc_client.hpp
parentb0ae8c66e34cd253b97da09ef0aaca9261e022a2 (diff)
downloadbiboumi-04d999168ac4629f5e49939f3659b32b2da2563d.tar.gz
biboumi-04d999168ac4629f5e49939f3659b32b2da2563d.tar.bz2
biboumi-04d999168ac4629f5e49939f3659b32b2da2563d.tar.xz
biboumi-04d999168ac4629f5e49939f3659b32b2da2563d.zip
Add a level of inheritance above SocketHandler
SocketHandler has been renamed to TCPSocketHandler SocketHandler is now a simple interface with a few methods, used only by Poller. This way we can inherite from the new SocketHandler class, to handle other types of sockets, and still make them manageable by the poller without any change in the Poller class.
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 7dff1db..afa6437 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/socket_handler.hpp>
+#include <network/tcp_socket_handler.hpp>
#include <unordered_map>
#include <memory>
@@ -21,7 +21,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 SocketHandler
+class IrcClient: public TCPSocketHandler
{
public:
explicit IrcClient(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& username, Bridge* bridge);