From d33a0f75a5c0c584fbb7cc0076da36d494f39494 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 22 Nov 2012 00:50:33 -0500 Subject: Pretty large coding style cleanup, in source doc cleanup, and allow protocol mods to depend on each other --- src/socket_clients.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/socket_clients.cpp') diff --git a/src/socket_clients.cpp b/src/socket_clients.cpp index 44d4b873a..69700af4e 100644 --- a/src/socket_clients.cpp +++ b/src/socket_clients.cpp @@ -7,6 +7,7 @@ * * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. + * */ #include "services.h" @@ -22,7 +23,7 @@ ConnectionSocket::ConnectionSocket() : Socket() void ConnectionSocket::Connect(const Anope::string &TargetHost, int Port) { - this->IO->Connect(this, TargetHost, Port); + this->io->Connect(this, TargetHost, Port); } bool ConnectionSocket::Process() @@ -32,7 +33,7 @@ bool ConnectionSocket::Process() if (this->HasFlag(SF_CONNECTED)) return true; else if (this->HasFlag(SF_CONNECTING)) - this->SetFlag(this->IO->FinishConnect(this)); + this->SetFlag(this->io->FinishConnect(this)); else this->SetFlag(SF_DEAD); } @@ -61,7 +62,7 @@ void ConnectionSocket::OnError(const Anope::string &error) Log(LOG_DEBUG) << "Socket error: " << error; } -ClientSocket::ClientSocket(ListenSocket *ls, const sockaddrs &addr) : LS(ls), clientaddr(addr) +ClientSocket::ClientSocket(ListenSocket *l, const sockaddrs &addr) : ls(l), clientaddr(addr) { } @@ -72,7 +73,7 @@ bool ClientSocket::Process() if (this->HasFlag(SF_ACCEPTED)) return true; else if (this->HasFlag(SF_ACCEPTING)) - this->SetFlag(this->IO->FinishAccept(this)); + this->SetFlag(this->io->FinishAccept(this)); else this->SetFlag(SF_DEAD); } -- cgit