2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 00:15:17 +00:00

asiolink: fix build with boost 1.66

- use native_handle() for getting native socket type
- use io_context instead of io_service
This commit is contained in:
Bartłomiej Piotrowski
2017-12-30 14:40:24 +01:00
committed by Baptiste Jonglez
parent 7272a2f252
commit 4fd11ef050
5 changed files with 21 additions and 0 deletions

View File

@@ -61,7 +61,11 @@ public:
/// \brief Return file descriptor of underlying socket
virtual int getNative() const {
#if BOOST_VERSION < 106600
return (socket_.native());
#else
return (socket_.native_handle());
#endif
}
/// \brief Return protocol of socket