mirror of
https://github.com/boostorg/redis.git
synced 2026-02-10 23:52:20 +00:00
More improvements in the readme.
This commit is contained in:
14
examples.cpp
14
examples.cpp
@@ -181,11 +181,23 @@ void example3()
|
||||
ioc.run();
|
||||
}
|
||||
|
||||
void send_ping()
|
||||
{
|
||||
net::io_context ioc;
|
||||
session s {ioc};
|
||||
|
||||
s.send(ping());
|
||||
|
||||
s.run();
|
||||
ioc.run();
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
example1();
|
||||
//example1();
|
||||
//example2();
|
||||
//example3();
|
||||
//rpush_ex();
|
||||
send_ping();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user