udp-protocol.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_FACE_UDP_PROTOCOL_HPP
27 #define NFD_DAEMON_FACE_UDP_PROTOCOL_HPP
28 
29 #include "core/common.hpp"
30 
31 namespace nfd {
32 namespace udp {
33 
34 typedef boost::asio::ip::udp::endpoint Endpoint;
35 
38 ssize_t
39 computeMtu(const Endpoint& localEndpoint);
40 
43 inline Endpoint
45 {
46  // 224.0.23.170:56363
47  return {boost::asio::ip::address_v4(0xE00017AA), 56363};
48 }
49 
50 } // namespace udp
51 } // namespace nfd
52 
53 #endif // NFD_DAEMON_FACE_UDP_PROTOCOL_HPP
ssize_t computeMtu(const Endpoint &localEndpoint)
computes maximum payload size in a UDP packet
Endpoint getDefaultMulticastGroup()
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
boost::asio::ip::udp::endpoint Endpoint