crda.cc
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
14 #include <boost/filesystem.hpp>
16 
17 //-/////////////////////////////////////////////////////////////////////////////////////////////////
18 
19 int main(int argc, char const * argv[])
20 {
21 // if (boost::filesystem::path(argv[0]).filename() == senf::emu::CRDA::instance().slaveName()) {
23  return senf::emu::CRDA::instance().run(argc, argv);
24 // }
25 //
26 // // true ==> MasterMode
27 // if (!senf::emu::CRDA::instance().init(true)) {
28 // std::cerr << "Failed to init CRDA ?!?" << std::endl;
29 // return 1;
30 // }
31 //
32 // return senf::emu::CRDA::instance().run(argc, argv);
33 }
34 
35 //-/////////////////////////////////////////////////////////////////////////////////////////////////
int main(int argc, char const *argv[])
Definition: crda.cc:19
static CRDA & instance()
Definition: CRDA.cc:39
int run(int argc, char const **argv)
Definition: CRDA.cc:383
bool init(bool MasterMode=false, std::string const &filename=DEFAULT_CRDA_SYNC_FILE)
Definition: CRDA.cc:154