summaryrefslogtreecommitdiff
path: root/include/inspsocket.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-07-26 12:13:13 +0100
committerPeter Powell <petpow@saberuk.com>2018-07-26 12:35:22 +0100
commit09c5439c02f31e9875083e51966dad535af005a9 (patch)
tree3ed113f16f3e9b4640dd1c6a80a8e6af6f01da77 /include/inspsocket.h
parent97a1d6429a735eb279496df010d04e3f42aa4e22 (diff)
Add a module which implements the HAProxy PROXY v2 protocol.
Diffstat (limited to 'include/inspsocket.h')
-rw-r--r--include/inspsocket.h6
1 files changed, 6 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);