[wesnoth-commits] [wesnoth/wesnoth] 40441f: Wesnothd Connection: simplify send() implementation
Charles Dang
noreply at github.com
Sun Dec 6 14:55:32 UTC 2020
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 40441fecb437be413993106fdf98eca1c93a5fcc
https://github.com/wesnoth/wesnoth/commit/40441fecb437be413993106fdf98eca1c93a5fcc
Author: Charles Dang <exodia339 at gmail.com>
Date: 2020-12-07 (Mon, 07 Dec 2020)
Changed paths:
M src/wesnothd_connection.cpp
Log Message:
-----------
Wesnothd Connection: simplify send() implementation
asio::const_buffers_1 is deprecated as of 1.66. Its replacement (const_buffer) doesn't have begin() and end() functions.
However, since (unless I'm reading this code wrong), we're dealing with a single buffer at this point, we don't need the
range constructor and can just insert the data directly into the queue via internalizer list (this also allows us to remove
the push_front call).
If we do need a range call, I think we're supposed to now use asio::buffer_sequence_begin and asio::buffer_sequence_end.
More information about the Commits
mailing list