MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / cleanup

Function cleanup

test/sockets/test_sockets_echo_server.c:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63client_t client;
64
65void cleanup() {
66 if (client.fd) {
67 close(client.fd);
68 client.fd = 0;
69 }
70 if (server.fd) {
71 close(server.fd);
72 server.fd = 0;
73 }
74}
75
76void main_loop() {
77 int res;

Callers

nothing calls this directly

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected