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

Method DisconnectPeer

Kernel/src/net/socket.cpp:158–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void LocalSocket::DisconnectPeer(){
159 assert(peer);
160
161 peer->OnDisconnect();
162
163 peer = nullptr;
164}
165
166void LocalSocket::OnDisconnect(){
167 connected = false;

Callers

nothing calls this directly

Calls 1

OnDisconnectMethod · 0.80

Tested by

no test coverage detected