]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Changes
[user/henk/code/inspircd.git] / include / users.h
index ea87004859879ad7a550ed1bcaf008497c2b47f2..743ea6c8ad63acc51840e8703561e150035169b7 100644 (file)
@@ -75,11 +75,12 @@ class UserResolver : public Resolver
         */
        userrec* bound_user;
        int bound_fd;
+       bool fwd;
  public:
        UserResolver(userrec* user, std::string to_resolve, bool forward);
 
        void OnLookupComplete(const std::string &result);
-       void OnError(ResolverError e);
+       void OnError(ResolverError e, const std::string &errormessage);
 };
 
 
@@ -267,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
         */