org.ccnx.ccn.profiles.ccnd.SimpleFaceControl Class Reference

Simple API to manage faces and prefix registrations all in one place. More...

List of all members.

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>()

Detailed Description

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.


Constructor & Destructor Documentation

org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.SimpleFaceControl ( CCNHandle  handle  )  throws CCNDaemonException [protected]

Open a SimpleFaceControl.

Exceptions:
CCNDaemonException 

Member Function Documentation

int org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.connectTcp ( String  host,
int  port 
) throws CCNDaemonException

Open a unicast connection to the given host.

prefix = /

Parameters:
port the ccnd port on the remote system
Returns:
faceId
Exceptions:
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 = /

Returns:
faceId
Exceptions:
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 = /

Returns:
faceId
Exceptions:
CCNDaemonException 
int org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.openMulicastInterface (  )  throws CCNDaemonException

Open the default multicast interface on 9695 and register /.

Returns:
the faceId
Exceptions:
CCNDaemonException 
void org.ccnx.ccn.profiles.ccnd.SimpleFaceControl.removeFace ( int  faceid  )  throws CCNDaemonException

Destroy a face (and all registrations on it).

Parameters:
faceid 
Exceptions:
CCNDaemonException 

The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:47 2011 for Content-Centric Networking in Java by  doxygen 1.6.3