diff options
author | Adam <Adam@anope.org> | 2013-01-21 22:31:16 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-21 22:31:16 -0500 |
commit | ddaa001dafb5122e6e363e4acbbe6ce045b7b104 (patch) | |
tree | 0364a76606ac6e2881ebd663601ce260f7c1101e /src/socket_clients.cpp | |
parent | 51c049e1a738e9124bab3961f35b830906517421 (diff) |
Merge usefulness of Flags and Extensible classes into Extensible, made most flags we have juse strings instead of defines/enums
Diffstat (limited to 'src/socket_clients.cpp')
-rw-r--r-- | src/socket_clients.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/socket_clients.cpp b/src/socket_clients.cpp index 32f9c1ff6..3686b2c0a 100644 --- a/src/socket_clients.cpp +++ b/src/socket_clients.cpp @@ -30,12 +30,12 @@ bool ConnectionSocket::Process() { try { - if (this->HasFlag(SF_CONNECTED)) + if (this->flags[SF_CONNECTED]) return true; - else if (this->HasFlag(SF_CONNECTING)) - this->SetFlag(this->io->FinishConnect(this)); + else if (this->flags[SF_CONNECTING]) + this->flags[this->io->FinishConnect(this)] = true; else - this->SetFlag(SF_DEAD); + this->flags[SF_DEAD] = true; } catch (const SocketException &ex) { @@ -70,12 +70,12 @@ bool ClientSocket::Process() { try { - if (this->HasFlag(SF_ACCEPTED)) + if (this->flags[SF_ACCEPTED]) return true; - else if (this->HasFlag(SF_ACCEPTING)) - this->SetFlag(this->io->FinishAccept(this)); + else if (this->flags[SF_ACCEPTING]) + this->flags[this->io->FinishAccept(this)] = true; else - this->SetFlag(SF_DEAD); + this->flags[SF_DEAD] = true; } catch (const SocketException &ex) { |