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

Method Close

Kernel/src/net/socket.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void Socket::Close(){
112 if(bound){
113 SocketManager::DestroySocket(this);
114 }
115
116 if(handleCount == 0)
117 delete this;
118}
119
120void Socket::Watch(FilesystemWatcher& watcher, int events){
121 assert(!"Socket::Watch called from socket base");

Callers

nothing calls this directly

Calls 2

DestroySocketFunction · 0.85
CloseFunction · 0.50

Tested by

no test coverage detected