Skip to content
Snippets Groups Projects
Commit 7ae0214d authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -233,7 +233,11 @@ TcpSocketEndpoint::TcpSocketEndpoint(const IpAddr& addr) ...@@ -233,7 +233,11 @@ TcpSocketEndpoint::TcpSocketEndpoint(const IpAddr& addr)
TcpSocketEndpoint::~TcpSocketEndpoint() TcpSocketEndpoint::~TcpSocketEndpoint()
{ {
#ifndef _MSC_VER
::close(sock_); ::close(sock_);
#else
::closesocket(sock_);
#endif
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment