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

Method _DoConnect

test/rpc/RPCClient.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void CRPCClient::_DoConnect(const cppnet::Handle& handle, uint32_t err) {
94 if (err != cppnet::CEC_SUCCESS) {
95 base::LOG_ERROR("connect failed! err : %d", err);
96 return;
97 }
98 _socket = handle;
99 _connected = true;
100 handle->Write("\r\n\r\n", strlen("\r\n\r\n"));
101}
102
103void CRPCClient::_DoDisConnect(const cppnet::Handle& handle, uint32_t err) {
104 base::LOG_ERROR("disconnect with server!");

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected