Examples: incorporate latest change of NDNPing Class
Change-Id: I01d59de621992a87c082074766dc18e9a7b549a2
diff --git a/examples/wifi/wifi_ping.py b/examples/wifi/wifi_ping.py
index bd48b15..a712342 100644
--- a/examples/wifi/wifi_ping.py
+++ b/examples/wifi/wifi_ping.py
@@ -27,7 +27,7 @@
from minindn.apps.app_manager import AppManager
from minindn.apps.nfd import Nfd
from minindn.helpers.nfdc import Nfdc
-from minindn.helpers.ndnpingclient import NDNPingClient
+from minindn.helpers.ndnping import NDNPing
from time import sleep
# This experiment uses the singleap topology and is intended to be a basic
# test case where we see if two nodes can send interests to each other.
@@ -64,13 +64,14 @@
nfds = AppManager(ndnwifi, ndnwifi.net.stations, Nfd)
info("Starting pingserver...")
- ping_server_proc = getPopen(b, "ndnpingserver /example")
+ NDNPing.startPingServer(b, "/example")
Nfdc.createFace(a, b.IP())
Nfdc.registerRoute(a, "/example", b.IP())
info("Starting ping...")
- NDNPingClient.ping(a, "/example", 10)
+ NDNPing.ping(a, "/example", nPings=10)
+ sleep(10)
# Start the CLI
MiniNDNWifiCLI(ndnwifi.net)
ndnwifi.net.stop()