We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d8c1e commit 94f96a4Copy full SHA for 94f96a4
include/network/network.hpp
@@ -87,13 +87,13 @@ namespace cs_impl {
87
std::string receive(std::size_t maximum)
88
{
89
buffer<> buff(maximum);
90
- std::size_t actually = sock.receive(asio::buffer(buff.get(), maximum));
+ std::size_t actually = sock.read_some(asio::buffer(buff.get(), maximum));
91
return std::string(buff.get(), actually);
92
}
93
94
void send(const std::string &s)
95
96
- sock.send(asio::buffer(s));
+ sock.write_some(asio::buffer(s));
97
98
99
tcp::endpoint remote_endpoint()
0 commit comments