2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-09 23:32:35 +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

@@ -23,7 +23,7 @@ int main()
tcp::resolver resv(ioc);
tcp::socket socket {ioc};
net::connect(socket, resv.resolve("127.0.0.1", "6379"));
net::write(socket, net::buffer(req.payload));
resp::write(socket, req);
std::string buffer;
for (;;) {