From 77b7c4300472ff1ba5c643b75ead4be75625f96f Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Sep 2008 23:08:32 +0000 Subject: Tidy up some of the internals a bit, making things a bit more extensible and future proof. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10462 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socket.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/socket.h') diff --git a/include/socket.h b/include/socket.h index 105984f74..556ee1a90 100644 --- a/include/socket.h +++ b/include/socket.h @@ -202,7 +202,22 @@ class CoreExport ListenSocket : public EventHandler { return bind_addr; } + + /** Handles sockets internals crap of a connection, convenience wrapper really + */ + void AcceptInternal(); + + /** Called when a new connection has successfully been accepted on this listener. + * @param ipconnectedto The IP address the connection arrived on + * @param fd The file descriptor of the new connection + */ + virtual void OnAcceptReady(const std::string &ipconnectedto, int fd); }; +//class CoreExport ListenSocketClient : public ListenSocket +//{ +// +//} + #endif -- cgit v1.2.3