Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Extra-Creativity/Modern-Cpp-Basics
/ Close
Method
Close
08-String & Stream/example/src/Socket.h:71–78 ·
view source on GitHub ↗
Clean and reset.
Source
from the content-addressed store, hash-verified
69
70
// Clean and reset.
71
void Close()
72
{
73
if (*this)
74
{
75
Clean_();
76
socket_ = s_invalidSocket_;
77
}
78
}
79
explicit operator bool() const noexcept
80
{
81
return socket_ != s_invalidSocket_;
Callers
1
close
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected