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

Function WriteFunc

test/sendfile/SendFileServer.cpp:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30std::map<Handle, Content> _recv_map;
31
32void WriteFunc(const Handle& handle, uint32_t len, uint32_t error) {
33 if (error != CEC_SUCCESS) {
34 std::cout << "something err while write : " << error << std::endl;
35 }
36 // do nothing
37}
38
39void ReadFunc(const Handle& handle, base::CBuffer* data, uint32_t len, uint32_t error) {
40 if (error != CEC_SUCCESS) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected