diff options
Diffstat (limited to 'include/socket.h')
-rw-r--r-- | include/socket.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/socket.h b/include/socket.h index 8fd2df0df..c00c7f131 100644 --- a/include/socket.h +++ b/include/socket.h @@ -26,10 +26,10 @@ #include <netinet/in.h> #include <unistd.h> #include <fcntl.h> -#include <poll.h> #include <netdb.h> #include <errno.h> #include "inspircd_config.h" +#include "socketengine.h" namespace irc { @@ -138,4 +138,13 @@ namespace irc }; }; +class ListenSocket : public EventHandler +{ + protected: + InspIRCd* ServerInstance; + public: + ListenSocket(InspIRCd* Instance, int sockfd, irc::sockets::insp_sockaddr client, irc::sockets::insp_sockaddr server, int port, char* addr); + void HandleEvent(EventType et); +}; + #endif |