summaryrefslogtreecommitdiff
path: root/include
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
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')
-rw-r--r--include/socket.h2
-rw-r--r--include/socketengine.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/socket.h b/include/socket.h
index 6a0cc88ad..f79d9166e 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -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.
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.