MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / duk_trans_socket_finish

Function duk_trans_socket_finish

Source/Utils/duk_trans_socket_windows.cpp:156–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void duk_trans_socket_finish(void) {
157 if (client_sock != INVALID_SOCKET) {
158 (void) closesocket(client_sock);
159 client_sock = INVALID_SOCKET;
160 }
161 if (server_sock != INVALID_SOCKET) {
162 (void) closesocket(server_sock);
163 server_sock = INVALID_SOCKET;
164 }
165 if (wsa_inited) {
166 WSACleanup();
167 wsa_inited = 0;
168 }
169}
170
171void duk_trans_socket_waitconn(void) {
172 if (server_sock == INVALID_SOCKET) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected