]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socket.h
Add <oper:autologin> to allow SSL fingerprint-based automatic oper login
[user/henk/code/inspircd.git] / include / socket.h
index 6a0cc88ad51acf0de2f94193f2a8a6177b926b5a..91a10d1f9e3c7a71f042a21729a00ed03dfd7f82 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -34,7 +34,6 @@
 #endif
 
 #include <cerrno>
-#include "socketengine.h"
 
 /* Contains irc-specific definitions */
 namespace irc
@@ -124,6 +123,7 @@ namespace irc
        }
 }
 
+#include "socketengine.h"
 /** This class handles incoming connections on client ports.
  * It will create a new User for every valid connection
  * and assign it a file descriptor.
@@ -138,7 +138,7 @@ class CoreExport ListenSocket : public EventHandler
        std::string bind_desc;
        /** Create a new listening socket
         */
-       ListenSocket(ConfigTag* tag, const std::string& addr, int port);
+       ListenSocket(ConfigTag* tag, const irc::sockets::sockaddrs& bind_to);
        /** Handle an I/O event
         */
        void HandleEvent(EventType et, int errornum = 0);