MCPcopy Create free account
hub / github.com/caozhiyi/CppNet / SyncDisconnection

Method SyncDisconnection

net/linux/SocketImpl.cpp:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void CSocketImpl::SyncDisconnection() {
104 if (!_read_event->_client_socket) {
105 _read_event->_client_socket = memshared_from_this();
106 }
107
108 if (_event_actions) {
109 _read_event->_event_flag_set |= (EVENT_DISCONNECT | ERR_CONNECT_CLOSE);
110 _event_actions->AddDisconnection(_read_event);
111 }
112}
113
114void CSocketImpl::PostTask(std::function<void(void)>& func) {
115 _event_actions->PostTask(func);

Callers

nothing calls this directly

Calls 1

AddDisconnectionMethod · 0.45

Tested by

no test coverage detected