33 #include <arpa/inet.h>
35 #include <sys/resource.h>
36 #include <sys/types.h>
37 #include <sys/socket.h>
40 #include <netinet/in.h>
47 #include "inspircd_win32wrapper.h"
65 struct sockaddr_in in4;
66 struct sockaddr_in6 in6;
71 socklen_t sa_size()
const;
75 std::string addr()
const;
77 std::string str()
const;
78 bool operator==(
const sockaddrs& other)
const;
79 inline bool operator!=(
const sockaddrs& other)
const {
return !(*
this == other); }
89 unsigned char bits[16];
97 bool operator==(
const cidr_mask& other)
const;
99 bool operator<(
const cidr_mask& other)
const;
103 std::string str()
const;
118 CoreExport
bool MatchCIDR(
const std::string &address,
const std::string &cidr_mask,
bool match_with_username);
139 CoreExport
bool isunix(
const std::string& file);
164 typedef std::vector<FailedPort> FailedPortList;
166 #include "socketengine.h"
187 typedef TR1NS::array<IOHookProvRef, 2> IOHookProvList;
208 void ResetIOHookProvider();
Definition: inspircd_win32wrapper.h:187
bool aptosa(const std::string &addr, int port, irc::sockets::sockaddrs &sa)
Definition: socket.cpp:158
int error
Definition: socket.h:147
Definition: socketengine.h:157
unsigned char type
Definition: socket.h:85
ConfigTag * tag
Definition: socket.h:153
bool isunix(const std::string &file)
Definition: socket.cpp:201
irc::sockets::sockaddrs sa
Definition: socket.h:150
IOHookProvList iohookprovs
Definition: socket.h:192
bool MatchCIDR(const std::string &address, const std::string &cidr_mask, bool match_with_username)
Definition: cidr.cpp:33
Definition: configreader.h:43
bool untosa(const std::string &path, irc::sockets::sockaddrs &sa)
Definition: socket.cpp:190
Definition: hashcomp.h:75
unsigned char length
Definition: socket.h:87
virtual void OnEventHandlerRead()=0