MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Close

Method Close

lib/base/socket.cpp:70–78  ·  view source on GitHub ↗

* Closes the socket. */

Source from the content-addressed store, hash-verified

68 * Closes the socket.
69 */
70void Socket::Close()
71{
72 ObjectLock olock(this);
73
74 if (m_FD != INVALID_SOCKET) {
75 closesocket(m_FD);
76 m_FD = INVALID_SOCKET;
77 }
78}
79
80/**
81 * Retrieves the last error that occurred for the socket.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected