MCPcopy Create free account
hub / github.com/ElementsProject/elements / Release

Method Release

src/util/sock.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51SOCKET Sock::Get() const { return m_socket; }
52
53SOCKET Sock::Release()
54{
55 const SOCKET s = m_socket;
56 m_socket = INVALID_SOCKET;
57 return s;
58}
59
60void Sock::Reset() { CloseSocket(m_socket); }
61

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.45
FUZZ_TARGET_INITFunction · 0.45
SetStartOnSystemStartupFunction · 0.45

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.36
FUZZ_TARGET_INITFunction · 0.36