MCPcopy Create free account
hub / github.com/anjo76/angelscript / Close

Method Close

sdk/add_on/scriptsocket/scriptsocket.cpp:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160int CScriptSocket::Close()
161{
162 // If the socket is open
163 if (m_socket == -1)
164 return -1;
165
166 // Close the listener socket
167 closesocket(m_socket);
168 m_socket = -1;
169
170 return 0;
171}
172
173int CScriptSocket::Connect(asUINT ipv4Address, asWORD port)
174{

Callers 1

IsActiveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected