]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socket.h
Get rid of socklen_t parameter to Bind, we are using C++ here and can do it other...
[user/henk/code/inspircd.git] / include / socket.h
index b012cf62a1fcd0bcc8ed4b3967e2290fa6ef4918..f79d9166e50d1450750c99cdb4510236df6f77dc 100644 (file)
@@ -34,7 +34,6 @@
 #endif
 
 #include <cerrno>
-#include "socketengine.h"
 
 /* Contains irc-specific definitions */
 namespace irc
@@ -96,13 +95,6 @@ namespace irc
                 */
                CoreExport bool MatchCIDR(const std::string &address, const std::string &cidr_mask, bool match_with_username);
 
-               /** Create a new valid file descriptor using socket()
-                * @return On return this function will return a value >= 0 for success,
-                * or a negative value upon failure (negative values are invalid file
-                * descriptors)
-                */
-               CoreExport int OpenTCPSocket(const std::string& addr, int socktype = SOCK_STREAM);
-
                /** Return the size of the structure for syscall passing */
                inline int sa_size(const irc::sockets::sockaddrs& sa) { return sa.sa_size(); }
 
@@ -131,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.