2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-09 11:22:22 +00:00

Adds write functions.

This commit is contained in:
Marcelo Zimbres
2020-12-31 22:39:44 +01:00
parent 59fb47e03c
commit a8299169c1
11 changed files with 142 additions and 72 deletions

View File

@@ -27,7 +27,7 @@ net::awaitable<void> example1()
auto const r = resv.resolve("127.0.0.1", "6379");
tcp_socket socket {ex};
co_await async_connect(socket, r);
co_await async_write(socket, net::buffer(req.payload));
co_await async_write(socket, req);
std::string buffer;
for (;;) {