src/corosio/src/tcp.cpp
100.0% Lines (6/6)
100.0% Functions (3/3)
| Line | TLA | Hits | Source Code |
|---|---|---|---|
| 1 | // | ||
| 2 | // Copyright (c) 2026 Steve Gerbino | ||
| 3 | // | ||
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
| 6 | // | ||
| 7 | // Official repository: https://github.com/cppalliance/corosio | ||
| 8 | // | ||
| 9 | |||
| 10 | #include <boost/corosio/tcp.hpp> | ||
| 11 | #include <boost/corosio/native/native_tcp.hpp> | ||
| 12 | |||
| 13 | namespace boost::corosio { | ||
| 14 | |||
| 15 | int | ||
| 16 | 7862 | tcp::family() const noexcept | |
| 17 | { | ||
| 18 | 7862 | return native_tcp( v6_ ? native_tcp::v6() : native_tcp::v4() ).family(); | |
| 19 | } | ||
| 20 | |||
| 21 | int | ||
| 22 | 7862 | tcp::type() noexcept | |
| 23 | { | ||
| 24 | 7862 | return native_tcp::type(); | |
| 25 | } | ||
| 26 | |||
| 27 | int | ||
| 28 | 7862 | tcp::protocol() noexcept | |
| 29 | { | ||
| 30 | 7862 | return native_tcp::protocol(); | |
| 31 | } | ||
| 32 | |||
| 33 | } // namespace boost::corosio | ||
| 34 |