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

Function WriteFunc

test/echo/EchoServer.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static const char* __buf_spilt = "\r\n";
13
14void WriteFunc(const Handle& handle, uint32_t len, uint32_t error) {
15 if (error != CEC_SUCCESS) {
16 std::cout << "something err while write : " << error << std::endl;
17 }
18 // do nothing
19}
20
21void ReadFunc(const Handle& handle, base::CBuffer* data, uint32_t len, uint32_t error) {
22 if (error != CEC_SUCCESS) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected