| 1140 | bool has_trusted_peer; |
| 1141 | |
| 1142 | void init() { |
| 1143 | // Socket settings that have to be set after connect or accept succeeds |
| 1144 | socket.non_blocking(true); |
| 1145 | socket.set_option(boost::asio::ip::tcp::no_delay(true)); |
| 1146 | platform::setCloseOnExec(socket.native_handle()); |
| 1147 | } |
| 1148 | |
| 1149 | void closeSocket() { |
| 1150 | boost::system::error_code cancelError; |
no test coverage detected