Hello again,
I've been trying to make progress in creating a new router for IBR-DTN and came up against a wall in the actual inclusion to the main code. In main.cpp you have the code:
case Configuration::EPIDEMIC_ROUTING:
{
IBRCOMMON_LOGGER(info) << "Using epidemic routing extensions" << IBRCOMMON_LOGGER_ENDL;
router->addExtension( new dtn::routing::EpidemicRoutingExtension() );
break;
}
which I understand is adding the routing extensions to a list of extensions to use. I created identical code for my router
case Configuration::TORRENT_ROUTING:
{
IBRCOMMON_LOGGER(info) << "Using torrent routing extensions" << IBRCOMMON_LOGGER_ENDL;
router->addExtension( new dtn::routing::TorrentRoutingExtension() );
break;
}
and essentially my router was a copy of the code from epidemic and flooding with some minor alterations. When I try to compile though I get the error:
Main.cpp:582: error: expected type-specifier
Main.cpp:582: error: expected ‘)’
Main.cpp:582: error: no matching function for call to ‘dtn::routing::BaseRouter::addExtension(int*)’
where line 582 is the router->addExtension line from my new code. I know this doesn't give you much to go on, but I feel like I haven't initialized something or added code some where else in the program to properly declare TorrentRoutingExtension and I was wondering if you had any insight into this. If you need other code to inspect let me know.
Thank you,
Carson Dunbar