mirror of
https://github.com/anope/anope.git
synced 2026-06-27 07:46:37 +02:00
Rewrote the MySQL API to use threads. This acts similar to before, but is faster. Removed db_mysql_execute for now.
This commit is contained in:
@@ -25,11 +25,18 @@ SocketEngineBase::SocketEngineBase()
|
||||
|
||||
SocketEngineBase::~SocketEngineBase()
|
||||
{
|
||||
for (std::map<int, Socket *>::const_iterator it = this->Sockets.begin(), it_end = this->Sockets.end(); it != it_end; ++it)
|
||||
delete it->second;
|
||||
this->Sockets.clear();
|
||||
#ifdef _WIN32
|
||||
WSACleanup();
|
||||
#endif
|
||||
}
|
||||
|
||||
Socket::Socket()
|
||||
{
|
||||
}
|
||||
|
||||
/** Constructor
|
||||
* @param nsock The socket
|
||||
* @param nIPv6 IPv6?
|
||||
|
||||
Reference in New Issue
Block a user