src/corosio/src/tcp.cpp
100.0% Lines (6/6)
100.0% List of functions (3/3)
100.0% Branches (2/2)
Functions (3)
| Line | Branch | 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 | 8676x | tcp::family() const noexcept | ||
| 17 | { | |||
| 18 |
2/2✓ Branch 0 taken 26 times.
✓ Branch 1 taken 8650 times.
|
8676x | return native_tcp(v6_ ? native_tcp::v6() : native_tcp::v4()).family(); | |
| 19 | } | |||
| 20 | ||||
| 21 | int | |||
| 22 | 8676x | tcp::type() noexcept | ||
| 23 | { | |||
| 24 | 8676x | return native_tcp::type(); | ||
| 25 | } | |||
| 26 | ||||
| 27 | int | |||
| 28 | 8676x | tcp::protocol() noexcept | ||
| 29 | { | |||
| 30 | 8676x | return native_tcp::protocol(); | ||
| 31 | } | |||
| 32 | ||||
| 33 | } // namespace boost::corosio | |||
| 34 |