From 800f02e7599d5f90d1c16f02cb1c28901d354140 Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 13 Nov 2009 20:23:11 +0000 Subject: Get rid of socklen_t parameter to Bind, we are using C++ here and can do it other ways git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12129 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/socketengine.h') diff --git a/include/socketengine.h b/include/socketengine.h index b411b394a..9240c3a43 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -18,6 +18,7 @@ #include #include #include "inspircd_config.h" +#include "socket.h" #include "base.h" /** Types of event an EventHandler may receive. @@ -439,7 +440,7 @@ public: * This function should emulate its namesake system call exactly. * @return This method should return exactly the same values as the system call it emulates. */ - int Bind(int fd, const sockaddr *my_addr, socklen_t addrlen); + int Bind(int fd, const irc::sockets::sockaddrs& addr); /** Abstraction for BSD sockets listen(2). * This function should emulate its namesake system call exactly. -- cgit v1.2.3