MCPcopy Create free account
hub / github.com/cuberite/cuberite / ShutdownReadWrite

Method ShutdownReadWrite

src/OSSupport/Socket.cpp:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91void cSocket::ShutdownReadWrite(void)
92{
93 #ifdef _WIN32
94 int res = shutdown(m_Socket, SD_BOTH);
95 #else
96 int res = shutdown(m_Socket, SHUT_RDWR);
97 #endif
98 if (res != 0)
99 {
100 LOGWARN("%s: Error shutting down socket %d (%s): %d (%s)",
101 __FUNCTION__, m_Socket, m_IPString.c_str(), this->GetLastError(), GetLastErrorString().c_str()
102 );
103 }
104}
105
106
107

Callers 3

RemoveClientMethod · 0.80
WriteToSocketsMethod · 0.80
QueueOutgoingDataMethod · 0.80

Calls 3

GetLastErrorMethod · 0.95
LOGWARNFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected