Fix compatibility with Boost 1.66

Do not use deprecated native() method.
This commit is contained in:
Filip Stedronsky 2018-02-01 12:35:34 +01:00
commit 5d3284cb14

View file

@ -138,7 +138,7 @@ unsigned short BaseSocketMessenger<stream_protocol>::local_port() const {
template <typename stream_protocol>
void BaseSocketMessenger<stream_protocol>::set_no_delay() {
const auto fd = socket->native();
const auto fd = socket->native_handle();
int flag = 1;
const auto ret =
::setsockopt(fd, IPPROTO_TCP, TCP_NODELAY,