summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inspsocket.h6
-rw-r--r--include/users.h1
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.