summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/users.h b/include/users.h
index 13dc33709..19116a130 100644
--- a/include/users.h
+++ b/include/users.h
@@ -268,7 +268,23 @@ class userrec : public connection
/** IPV4 ip address
*/
- insp_inaddr ip4;
+ sockaddr ip;
+
+ /** Initialize the clients sockaddr
+ */
+ void SetSockAddr(int protocol_family, const char* ip, int port);
+
+ /** Get port number from sockaddr
+ */
+ int GetPort();
+
+ /** Get protocol family from sockaddr
+ */
+ int GetProtocolFamily();
+
+ /** Get IP string from sockaddr
+ */
+ const char* GetIPString();
/* Write error string
*/