blob: 2d9740767e2c729e4784f017bafc0770412895b8 [file] [log] [blame]
Junxiao Shi6c135622016-11-21 14:30:33 +00001nfdc-face
2=========
3
4SYNOPSIS
5--------
6| nfdc face [list]
Junxiao Shif0dfb332017-02-02 05:32:25 +00007| nfdc face show <FACEID>
Junxiao Shi6c135622016-11-21 14:30:33 +00008| nfdc channel [list]
Junxiao Shif0dfb332017-02-02 05:32:25 +00009| nfdc create [-P] <FACEURI>
10| nfdc destroy <FACEID|FACEURI>
Junxiao Shi6c135622016-11-21 14:30:33 +000011
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 Shif0dfb332017-02-02 05:32:25 +000039<FACEID>
Junxiao Shi1f481fa2017-01-26 15:14:43 +000040 Numerical identifier of the face.
41 It is displayed in the output of **nfdc face list** and **nfdc create** commands.
42
Junxiao Shif0dfb332017-02-02 05:32:25 +000043<FACEURI>
Junxiao Shi6c135622016-11-21 14:30:33 +000044 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)