]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socket.h
Add HiroP to contributors for being such a helpful little gubbins ;>. Congradulations. :)
[user/henk/code/inspircd.git] / include / socket.h
index cf2b9bf5bcab1a680d5af5b1a7704b1db2245965..4e7d8919252b51c84c61a26c78d4382ad14af913 100644 (file)
@@ -136,7 +136,7 @@ namespace irc
                 * or a negative value upon failure (negative values are invalid file
                 * descriptors)
                 */
-               int OpenTCPSocket(); 
+               int OpenTCPSocket(char* addr, int socktype = SOCK_STREAM);
        };
 };
 
@@ -150,6 +150,8 @@ class ListenSocket : public EventHandler
        /** The creator/owner of this object
         */
        InspIRCd* ServerInstance;
+       std::string desc;
+       int family;
  public:
        /** Create a new listening socket
         */
@@ -160,6 +162,17 @@ class ListenSocket : public EventHandler
        /** Close the socket
         */
        ~ListenSocket();
+       /** Set descriptive text
+        */
+       void SetDescription(const std::string &description)
+       {
+               desc = description;
+       }
+
+       const std::string& GetDescription()
+       {
+               return desc;
+       }
 };
 
 #endif