summaryrefslogtreecommitdiff
path: root/include/socketengine.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-11-13 20:23:11 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-11-13 20:23:11 +0000
commit800f02e7599d5f90d1c16f02cb1c28901d354140 (patch)
tree2da147749bca500bd751461133fbb4d405f3ea17 /include/socketengine.h
parentc6140ba7048e0e1bc11bd827639953742d03e380 (diff)
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
Diffstat (limited to 'include/socketengine.h')
-rw-r--r--include/socketengine.h3
1 files changed, 2 insertions, 1 deletions
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 <string>
#include <map>
#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.