Simple API to manage faces and prefix registrations all in one place. More...
Public Member Functions | |
int | openMulicastInterface () throws CCNDaemonException |
Open the default multicast interface on 9695 and register /. | |
int | connectUdp (String host) throws CCNDaemonException |
Open a unicast connection to the given host. | |
int | connectTcp (String host) throws CCNDaemonException |
Open a unicast connection to the given host. | |
int | connectTcp (String host, int port) throws CCNDaemonException |
Open a unicast connection to the given host. | |
void | removeFace (int faceid) throws CCNDaemonException |
Destroy a face (and all registrations on it). | |
Static Public Member Functions | |
static SimpleFaceControl | getInstance () throws CCNDaemonException |
static SimpleFaceControl | getInstance (CCNHandle handle) throws CCNDaemonException |
Static Public Attributes | |
static final String | CCN_MULTICAST_IP = "224.0.23.170" |
static final int | CCN_PORT = 9695 |
static final int | CCN_MULTICAST_PORT = 59695 |
Protected Member Functions | |
SimpleFaceControl (CCNHandle handle) throws CCNDaemonException | |
Open a SimpleFaceControl. | |
Static Protected Attributes | |
static final Map< KeyManager, SimpleFaceControl > | _sfcMap = new HashMap<KeyManager,SimpleFaceControl>() |
Simple API to manage faces and prefix registrations all in one place.
A given keystore only has one of these, and it remembers what faces you've created.
If you do not provide a handle, the default handle is used. You will need to close that handle when your program exits.
org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.SimpleFaceControl | ( | CCNHandle | handle | ) | throws CCNDaemonException [protected] |
Open a SimpleFaceControl.
CCNDaemonException |
int org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.connectTcp | ( | String | host, | |
int | port | |||
) | throws CCNDaemonException |
Open a unicast connection to the given host.
prefix = /
port | the ccnd port on the remote system |
CCNDaemonException | ||
CCNDaemonException |
int org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.connectTcp | ( | String | host | ) | throws CCNDaemonException |
Open a unicast connection to the given host.
port = 9695 prefix = /
CCNDaemonException | ||
CCNDaemonException |
int org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.connectUdp | ( | String | host | ) | throws CCNDaemonException |
Open a unicast connection to the given host.
port = 9695 prefix = /
CCNDaemonException |
int org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.openMulicastInterface | ( | ) | throws CCNDaemonException |
Open the default multicast interface on 9695 and register /.
CCNDaemonException |
void org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.removeFace | ( | int | faceid | ) | throws CCNDaemonException |