Actions
Task #3137
closedping: Refactor code to allow integration with ndnSIM
Start date:
08/26/2015
Due date:
% Done:
100%
Estimated time:
Description
There are a few places that require small refactoring of client::Ping and server::PingServer:
- only owner of ping/server classes should manage async thread (no calls to
io_service.run/stop) - only owner of server should own KeyChain (this way ndnSIM can substitute KeyChain instance)
- ping/server classes should gracefully handle termination. Right now, both ping and server don't clean up states and simply rely on terminating of face operations and even using exit(1) in some cases. To run experimentation within ndnSIM, stopping has to be done in a graceful way, with properly cancelling all events and unregistering prefixes.
Files
Actions