MCPcopy Create free account
hub / github.com/Codesire-Deng/co_context / send

Function send

test/send_client.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using Socket = co_context::socket;
11
12task<> send(Socket sock) {
13 // NOTE `getchar()` will block current thread
14 while (getchar()) {
15 for (int i = 0; i < times; ++i) {
16 co_await sock.send(message);
17 }
18 }
19}
20
21task<> client() {
22 inet_address addr;

Callers 1

clientFunction · 0.70

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected