1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 00:13:13 +02:00

Cleaned up some of the socket code, cleaned up the pipe engines, added support for binary sockets, and cleaned up the asynch connect/accept code

This commit is contained in:
Adam
2011-08-21 13:38:42 -04:00
parent 4fcb371bc8
commit 2eb708e5ad
16 changed files with 738 additions and 725 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ class MyXMLRPCClientSocket : public XMLRPCClientSocket
/* Used to skip the (optional) HTTP header, which we really don't care about */
bool in_query;
public:
MyXMLRPCClientSocket(XMLRPCListenSocket *ls, int fd, const sockaddrs &addr) : XMLRPCClientSocket(ls, fd, addr), in_query(false)
MyXMLRPCClientSocket(XMLRPCListenSocket *ls, int fd, const sockaddrs &addr) : Socket(fd, ls->IsIPv6()), XMLRPCClientSocket(ls, addr), in_query(false)
{
}
@@ -245,9 +245,9 @@ class ModuleXMLRPC : public Module
Socket *s = it->second;
++it;
if (s->Type == SOCKTYPE_CLIENT)
ClientSocket *cs = dynamic_cast<ClientSocket *>(s);
if (cs != NULL)
{
ClientSocket *cs = debug_cast<ClientSocket *>(s);
for (unsigned i = 0; i < listen_sockets.size(); ++i)
if (cs->LS == listen_sockets[i])
{