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

Method SyncRead

net/linux/SocketImpl.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void CSocketImpl::SyncRead() {
54 if (!_read_event->_client_socket) {
55 _read_event->_client_socket = memshared_from_this();
56 }
57
58 if (_event_actions) {
59 _read_event->_event_flag_set |= EVENT_READ;
60 _event_actions->AddRecvEvent(_read_event);
61 }
62}
63
64void CSocketImpl::SyncWrite(const char* src, uint32_t len) {
65 if (!_write_event->_client_socket) {

Callers 1

_AcceptMethod · 0.45

Calls 1

AddRecvEventMethod · 0.45

Tested by

no test coverage detected