35 if (localEndpoint.address().is_v4()) {
36 mtu = std::numeric_limits<uint16_t>::max();
37 mtu -=
sizeof(uint32_t) * ((1 << 4) - 1);
40 mtu = std::numeric_limits<uint16_t>::max();
42 mtu -=
sizeof(uint16_t) * 4;
ssize_t computeMtu(const Endpoint &localEndpoint)
computes maximum payload size in a UDP packet
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
boost::asio::ip::udp::endpoint Endpoint