update CommService

This commit is contained in:
XieHan
2021-01-16 01:31:04 +08:00
parent 8b0c6b5317
commit ecd985be97
2 changed files with 11 additions and 14 deletions
-11
View File
@@ -273,17 +273,6 @@ int CommService::drain(int max)
return cnt;
}
inline void CommService::incref()
{
this->ref++;
}
inline void CommService::decref()
{
if (--this->ref == 0)
this->handle_unbound();
}
class CommServiceTarget : public CommTarget
{
public:
+11 -3
View File
@@ -212,9 +212,17 @@ private:
int ssl_accept_timeout;
SSL_CTX *ssl_ctx;
private:
void incref();
void decref();
public:
void incref()
{
this->ref++;
}
void decref()
{
if (--this->ref == 0)
this->handle_unbound();
}
private:
SOCKET listen_sockfd;