diff options
author | Peter Powell <petpow@saberuk.com> | 2018-07-26 12:13:13 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-07-26 12:35:22 +0100 |
commit | 09c5439c02f31e9875083e51966dad535af005a9 (patch) | |
tree | 3ed113f16f3e9b4640dd1c6a80a8e6af6f01da77 /include | |
parent | 97a1d6429a735eb279496df010d04e3f42aa4e22 (diff) |
Add a module which implements the HAProxy PROXY v2 protocol.
Diffstat (limited to 'include')
-rw-r--r-- | include/inspsocket.h | 6 | ||||
-rw-r--r-- | include/users.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/inspsocket.h b/include/inspsocket.h index addb761d1..5bdbfd652 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -297,6 +297,12 @@ class CoreExport StreamSocket : public EventHandler /** Called when the socket gets an error from socket engine or IO hook */ virtual void OnError(BufferedSocketError e) = 0; + /** Called when the endpoint addresses are changed. + * @param local The new local endpoint. + * @param remote The new remote endpoint. + */ + virtual void OnSetEndPoint(const irc::sockets::sockaddrs& server, const irc::sockets::sockaddrs& remote) { } + /** Send the given data out the socket, either now or when writes unblock */ void WriteData(const std::string& data); diff --git a/include/users.h b/include/users.h index 12a311980..88858b160 100644 --- a/include/users.h +++ b/include/users.h @@ -736,6 +736,7 @@ class CoreExport UserIOHandler : public StreamSocket LocalUser* const user; UserIOHandler(LocalUser* me) : user(me) {} void OnDataReady() CXX11_OVERRIDE; + void OnSetEndPoint(const irc::sockets::sockaddrs& local, const irc::sockets::sockaddrs& remote) CXX11_OVERRIDE; void OnError(BufferedSocketError error) CXX11_OVERRIDE; /** Adds to the user's write buffer. |