From: g0dil Date: Tue, 14 Oct 2008 16:44:09 +0000 (+0000) Subject: Examples/MultiMCLoop: Add '-n' argument to *not* initialize dummy interface X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=c1ed714cca9ace7230391f4eb1519f144e9b6876;p=senf.git Examples/MultiMCLoop: Add '-n' argument to *not* initialize dummy interface git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@937 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Examples/MultiMCLoop/MultiMCLoop.cc b/Examples/MultiMCLoop/MultiMCLoop.cc index 6f7540d..e598134 100644 --- a/Examples/MultiMCLoop/MultiMCLoop.cc +++ b/Examples/MultiMCLoop/MultiMCLoop.cc @@ -32,6 +32,7 @@ #include #include #include +#include //#include "MultiMCLoop.mpp" #define prefix_ @@ -156,7 +157,8 @@ void sigintHandler(siginfo_t const &) int main(int argc, char * argv[]) { try { - IfSetup setup ("dummy0"); + boost::scoped_ptr setup ( + (argc != 2 || std::string(argv[1]) != "-n") ? new IfSetup("dummy0") : 0); senf::scheduler::SignalEvent sigint (SIGINT, &sigintHandler);