From 0e07fc2e9e69270a110d8dc07007498b4d03b8b0 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 8 Sep 2008 10:43:00 +0000 Subject: Add incoming IP to OnAcceptReady git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10467 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socket.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/socket.h') diff --git a/include/socket.h b/include/socket.h index 556ee1a90..1f699dbd7 100644 --- a/include/socket.h +++ b/include/socket.h @@ -210,8 +210,9 @@ class CoreExport ListenSocket : public EventHandler /** 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 + * @param incomingip The IP from which the connection was made */ - virtual void OnAcceptReady(const std::string &ipconnectedto, int fd); + virtual void OnAcceptReady(const std::string &ipconnectedto, int fd, const std::string &incomingip); }; //class CoreExport ListenSocketClient : public ListenSocket -- cgit v1.2.3