Commit 7ae0214d authored by Andreas Traczyk's avatar Andreas Traczyk

data transfer: use closesocket() when building from windows

- unfortunately, windows sockets are not file descriptors and
  are invalid parameters for close()

Change-Id: I3ff28af672718e6394f22f7df7f1d36d9b9cacb9
parent 175c5381
......@@ -233,7 +233,11 @@ TcpSocketEndpoint::TcpSocketEndpoint(const IpAddr& addr)
TcpSocketEndpoint::~TcpSocketEndpoint()
{
#ifndef _MSC_VER
::close(sock_);
#else
::closesocket(sock_);
#endif
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment