blob: f015daa83d502de841542ac73da67f6ec851a121 [file] [log] [blame]
Junxiao Shi6c135622016-11-21 14:30:33 +00001nfdc-face
2=========
3
4SYNOPSIS
5--------
6| nfdc face [list]
Junxiao Shi1f481fa2017-01-26 15:14:43 +00007| nfdc face show <faceId>
Junxiao Shi6c135622016-11-21 14:30:33 +00008| nfdc channel [list]
9| nfdc create [-P] <faceUri>
10| nfdc destroy <faceId|faceUri>
11
12DESCRIPTION
13-----------
14In NFD, a face is the generalization of network interface.
15It could be a physical network interface to communicate on a physical link,
16an overlay communication channel between NFD and a remote node,
17or an inter-process communication channel between NFD and a local application.
18
19The **nfdc face list** command shows a list of faces, their properties, and statistics.
20
Junxiao Shi1f481fa2017-01-26 15:14:43 +000021The **nfdc face show** command shows properties and statistics of one specific face.
22
Junxiao Shi6c135622016-11-21 14:30:33 +000023The **nfdc channel list** command shows a list of channels.
24Channels are listening sockets that can accept incoming connections and create new faces.
25
26The **nfdc create** command creates a new UDP or TCP face.
27
28The **nfdc destroy** command destroys an existing face.
29It has no effect if the specified face does not exist.
30
31OPTIONS
32-------
33-P
34 Creates a "permanent" rather than persistent face.
35 A persistent face is closed when a socket error occrs.
36 A permanent face is kept alive upon socket errors,
37 and is closed only upon **nfdc destroy** command.
38
Junxiao Shi1f481fa2017-01-26 15:14:43 +000039<faceId>
40 Numerical identifier of the face.
41 It is displayed in the output of **nfdc face list** and **nfdc create** commands.
42
Junxiao Shi6c135622016-11-21 14:30:33 +000043<faceUri>
44 An URI representing the remote endpoint of a face.
45 Its syntax is:
46
47 - udp[4|6]://<IP-or-host>[:<port>]
48 - tcp[4|6]://<IP-or-host>[:<port>]
49
50 When a hostname is specified, a DNS query is used to obtain the IP address.
51
Junxiao Shi1f481fa2017-01-26 15:14:43 +000052EXIT CODES
53----------
54
550: Success
56
571: An unspecified error occurred
58
592: Malformed command line
60
613: Face not found (**nfdc face show** only)
Junxiao Shi6c135622016-11-21 14:30:33 +000062
63SEE ALSO
64--------
65nfd(1), nfdc(1)