Fix compatibility with Boost 1.66
Do not use deprecated native() method.
This commit is contained in:
parent
a821a1ef8c
commit
5d3284cb14
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ unsigned short BaseSocketMessenger<stream_protocol>::local_port() const {
|
||||||
|
|
||||||
template <typename stream_protocol>
|
template <typename stream_protocol>
|
||||||
void BaseSocketMessenger<stream_protocol>::set_no_delay() {
|
void BaseSocketMessenger<stream_protocol>::set_no_delay() {
|
||||||
const auto fd = socket->native();
|
const auto fd = socket->native_handle();
|
||||||
int flag = 1;
|
int flag = 1;
|
||||||
const auto ret =
|
const auto ret =
|
||||||
::setsockopt(fd, IPPROTO_TCP, TCP_NODELAY,
|
::setsockopt(fd, IPPROTO_TCP, TCP_NODELAY,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue