Convert closesocket 'compat wrapper' to function in netbase

Simpler alternative to #4348.

The current setup with closesocket() is strange. It poses
as a compatibility wrapper but adds functionality.

Rename it and make it a documented utility function in netbase.

Code movement only, zero effect on the functionality.
This commit is contained in:
Wladimir J. van der Laan
2014-07-10 12:13:03 +02:00
parent c4f11ca9c3
commit 43f510d37d
5 changed files with 45 additions and 47 deletions

View File

@@ -357,8 +357,7 @@ public:
{
if (hSocket != INVALID_SOCKET)
{
closesocket(hSocket);
hSocket = INVALID_SOCKET;
CloseSocket(hSocket);
}
if (pfilter)
delete pfilter;