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

Method Close

Kernel/src/net/ipsocket.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void IPSocket::Close(){
70 if(port){
71 Network::ReleasePort(port);
72 }
73
74 Socket::Close();
75}
76
77UDPSocket::UDPSocket(int type, int protocol) : IPSocket(type, protocol){
78 assert(type == DatagramSocket);

Callers

nothing calls this directly

Calls 2

ReleasePortFunction · 0.85
CloseFunction · 0.50

Tested by

no test coverage detected