MCPcopy Create free account
hub / github.com/defold/defold / Disconnect

Function Disconnect

engine/dlib/src/dlib/http_server.cpp:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 static void Disconnect(Server* server)
108 {
109 if (server->m_ServerSocket != dmSocket::INVALID_SOCKET_HANDLE)
110 {
111 dmSocket::Delete(server->m_ServerSocket);
112 server->m_ServerSocket = dmSocket::INVALID_SOCKET_HANDLE;
113 }
114 }
115
116 static Result Connect(Server* server, uint16_t port)
117 {

Callers 1

ConnectFunction · 0.85

Calls 1

DeleteFunction · 0.70

Tested by

no test coverage detected