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 
34 inline boost::asio::io_service&
36 {
37  return *static_cast<boost::asio::io_service*>(nullptr);
38 }
39 
40 #ifdef WITH_TESTS
41 
45 inline void
46 resetGlobalIoService()
47 {
48  // noop
49 }
50 #endif
51 
52 } // namespace nfd
53 
54 #endif // NFD_CORE_GLOBAL_IO_HPP
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38
boost::asio::io_service & getGlobalIoService()
Definition: global-io.hpp:35