Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
~Socket
Method · 0.85
Close
Method · 0.85
Calls
3
kfree
Function · 0.85
get_length
Method · 0.45
remove_at
Method · 0.45
Tested by
no test coverage detected