diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-07 23:08:32 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-07 23:08:32 +0000 |
commit | 77b7c4300472ff1ba5c643b75ead4be75625f96f (patch) | |
tree | d8f48d938b5c8164db01032ec26a24939a43d0b1 /include | |
parent | 66b1ab1f4de1af96d84298107e64d93c8f4223e3 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/socket.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 |