From 612384b3d46d06eea6fd71ee6dc60471d0f9e3d1 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 12 Apr 2015 16:20:13 +0200 Subject: Dispatch EventHandler events to dedicated virtual functions Remove enum EventType --- include/socket.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include/socket.h') diff --git a/include/socket.h b/include/socket.h index c292b7010..9d69b5d22 100644 --- a/include/socket.h +++ b/include/socket.h @@ -150,16 +150,13 @@ class CoreExport ListenSocket : public EventHandler /** Create a new listening socket */ ListenSocket(ConfigTag* tag, const irc::sockets::sockaddrs& bind_to); - /** Handle an I/O event - */ - void HandleEvent(EventType et, int errornum = 0); /** Close the socket */ ~ListenSocket(); - /** Handles sockets internals crap of a connection, convenience wrapper really + /** Handles new connections, called by the socket engine */ - void AcceptInternal(); + void OnEventHandlerRead() CXX11_OVERRIDE; /** Inspects the bind block belonging to this socket to set the name of the IO hook * provider which this socket will use for incoming connections. -- cgit v1.2.3