1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 21:33:14 +02:00

Made the Flag class able to convert flags to strings and back

This commit is contained in:
Adam
2011-01-08 00:25:11 -05:00
parent 4403849126
commit 512d23d60f
24 changed files with 206 additions and 424 deletions
+2 -2
View File
@@ -337,7 +337,7 @@ void SocketIO::Connect(ConnectionSocket *s, const Anope::string &target, int por
/** Empty constructor, used for things such as the pipe socket
*/
Socket::Socket()
Socket::Socket() : Flags<SocketFlag, 2>(SocketFlagStrings)
{
this->Type = SOCKTYPE_BASE;
this->IO = &normalSocketIO;
@@ -348,7 +348,7 @@ Socket::Socket()
* @param ipv6 IPv6?
* @param type The socket type, defaults to SOCK_STREAM
*/
Socket::Socket(int sock, bool ipv6, int type)
Socket::Socket(int sock, bool ipv6, int type) : Flags<SocketFlag, 2>(SocketFlagStrings)
{
this->Type = SOCKTYPE_BASE;
this->IO = &normalSocketIO;