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

Method Send

test/sendfile/SendFileClient.cpp:92–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 void Send(const Handle& handle) {
93 char buf[__read_len];
94 while (!_file.eof()) {
95 _file.read(buf, __read_len);
96 int len = _file.gcount();
97 handle->Write(buf, len);
98 }
99 _file.close();
100 }
101
102private:
103 std::fstream _file;

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected