MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / close

Method close

util/Socket.cpp:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108
109void Socket::close(void)
110{
111 if(sd != INVALID_SOCKET)
112 {
113 #ifdef _WIN32
114 closesocket(sd);
115 #else
116 shutdown(sd, 2);
117 ::close(sd);
118 #endif
119 sd = INVALID_SOCKET;
120 }
121}
122
123
124void Socket::connect(char *serverName, unsigned short port)

Callers 2

~VGLTransReceiverMethod · 0.45
mainFunction · 0.45

Calls 1

shutdownFunction · 0.85

Tested by 1

mainFunction · 0.36