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

Method source_address

example/cpp11/icmp/ipv4_header.hpp:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 unsigned short header_checksum() const { return decode(10, 11); }
67
68 boost::asio::ip::address_v4 source_address() const
69 {
70 boost::asio::ip::address_v4::bytes_type bytes
71 = { { rep_[12], rep_[13], rep_[14], rep_[15] } };
72 return boost::asio::ip::address_v4(bytes);
73 }
74
75 boost::asio::ip::address_v4 destination_address() const
76 {

Callers 1

handle_receiveMethod · 0.80

Calls 1

address_v4Class · 0.50

Tested by

no test coverage detected