public final class NdnPingClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ping(net.named_data.jndn.Face face,
net.named_data.jndn.Name name)
Request a name on an existing face to verify the forwarder is working and
responding to requests.
|
static boolean |
pingLocal(net.named_data.jndn.Face face)
Ping a forwarder on an existing face to verify that the forwarder is
working and responding to requests; this version sends a discovery packet
to /localhost/nfd which should always respond if the requestor is on the
same machine as the NDN forwarding daemon.
|
public static final long DEFAULT_TIMEOUT
public static boolean pingLocal(net.named_data.jndn.Face face)
face - only a localhost Facepublic static boolean ping(net.named_data.jndn.Face face,
net.named_data.jndn.Name name)
face - a Face to pingname - a known Name that the remote node will answer toCopyright © 2016. All rights reserved.