MCPcopy Create free account
hub / github.com/boostorg/asio / test

Function test

test/ip/unicast.cpp:32–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace ip_unicast_compile {
31
32void test()
33{
34 using namespace boost::asio;
35 namespace ip = boost::asio::ip;
36
37 try
38 {
39 io_context ioc;
40 ip::udp::socket sock(ioc);
41
42 // hops class.
43
44 ip::unicast::hops hops1(1024);
45 sock.set_option(hops1);
46 ip::unicast::hops hops2;
47 sock.get_option(hops2);
48 hops1 = 1;
49 (void)static_cast<int>(hops1.value());
50 }
51 catch (std::exception&)
52 {
53 }
54}
55
56} // namespace ip_unicast_compile
57

Callers

nothing calls this directly

Calls 6

set_optionMethod · 0.45
get_optionMethod · 0.45
valueMethod · 0.45
openMethod · 0.45
protocolMethod · 0.45
bindMethod · 0.45

Tested by

no test coverage detected