MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / DestroySocket

Function DestroySocket

Kernel/src/net/socket.cpp:439–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 }
438
439 void DestroySocket(Socket* sock){
440 for(unsigned i = 0; i < sockets.get_length(); i++){
441 if(sockets[i].socket == sock) {
442 kfree(sockets[i].address);
443 sockets.remove_at(i);
444 }
445 }
446 }
447}

Callers 2

~SocketMethod · 0.85
CloseMethod · 0.85

Calls 3

kfreeFunction · 0.85
get_lengthMethod · 0.45
remove_atMethod · 0.45

Tested by

no test coverage detected