NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
global-io.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
25 #ifndef NFD_CORE_GLOBAL_IO_HPP
26 #define NFD_CORE_GLOBAL_IO_HPP
27 
28 #include "common.hpp"
29 
30 namespace nfd {
31 
32 namespace detail {
33 
38 {
39 public:
40  void
41  post(const std::function<void()>& callback);
42 
43  void
44  dispatch(const std::function<void()>& callback);
45 };
46 
47 } // namespace detail
48 
53 
54 } // namespace nfd
55 
56 #endif // NFD_CORE_GLOBAL_IO_HPP
detail::SimulatorIo & getGlobalIoService()
Definition: global-io.cpp:48
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
void post(const std::function< void()> &callback)
Definition: global-io.cpp:34
Simulator-based IO that implements a few interfaces from boost::asio::io_service. ...
Definition: global-io.hpp:37
void dispatch(const std::function< void()> &callback)