src/corosio/src/udp.cpp

100.0% Lines (6/6) 100.0% List of functions (3/3) 100.0% Branches (2/2)
f(x) 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/udp.hpp>
11 #include <boost/corosio/native/native_udp.hpp>
12
13 namespace boost::corosio {
14
15 int
16 90x udp::family() const noexcept
17 {
18
2/2
✓ Branch 0 taken 14 times.
✓ Branch 1 taken 76 times.
90x return native_udp(v6_ ? native_udp::v6() : native_udp::v4()).family();
19 }
20
21 int
22 90x udp::type() noexcept
23 {
24 90x return native_udp::type();
25 }
26
27 int
28 90x udp::protocol() noexcept
29 {
30 90x return native_udp::protocol();
31 }
32
33 } // namespace boost::corosio
34