aboutsummaryrefslogtreecommitdiff
path: root/include/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h
index fa6ca779c..691cb196a 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -91,6 +91,9 @@ namespace irc
*/
bool from_unix(const std::string& path);
+ /** Determines whether this socket address is a local endpoint. */
+ bool is_local() const;
+
/** Returns the TCP port number of the socket address or 0 if not relevant to this family. */
int port() const;