blob: 86935d4e2e102b2247dac23752262c05c0c78061 [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 Shi1d7fef52017-02-02 05:33:14 +00008| nfdc face create [remote] <FACEURI> [[persistency] <PERSISTENCY>]
Junxiao Shif0dfb332017-02-02 05:32:25 +00009| nfdc destroy <FACEID|FACEURI>
Junxiao Shi1d7fef52017-02-02 05:33:14 +000010| nfdc channel [list]
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 Shi1d7fef52017-02-02 05:33:14 +000023The **nfdc face create** command creates a unicast UDP or TCP face.
Junxiao Shi6c135622016-11-21 14:30:33 +000024
25The **nfdc destroy** command destroys an existing face.
26It has no effect if the specified face does not exist.
27
Junxiao Shi1d7fef52017-02-02 05:33:14 +000028The **nfdc channel list** command shows a list of channels.
29Channels are listening sockets that can accept incoming connections and create new faces.
30
Junxiao Shi6c135622016-11-21 14:30:33 +000031OPTIONS
32-------
Junxiao Shif0dfb332017-02-02 05:32:25 +000033<FACEID>
Junxiao Shi1f481fa2017-01-26 15:14:43 +000034 Numerical identifier of the face.
Junxiao Shi1d7fef52017-02-02 05:33:14 +000035 It is displayed in the output of **nfdc face list** and **nfdc face create** commands.
Junxiao Shi1f481fa2017-01-26 15:14:43 +000036
Junxiao Shif0dfb332017-02-02 05:32:25 +000037<FACEURI>
Junxiao Shi6c135622016-11-21 14:30:33 +000038 An URI representing the remote endpoint of a face.
39 Its syntax is:
40
41 - udp[4|6]://<IP-or-host>[:<port>]
42 - tcp[4|6]://<IP-or-host>[:<port>]
43
44 When a hostname is specified, a DNS query is used to obtain the IP address.
45
Junxiao Shi1d7fef52017-02-02 05:33:14 +000046<PERSISTENCY>
47 Either "persistent" or "permanent".
48 A "persistent" face (the default) is closed when a socket error occurs.
49 A "permanent" face survives socket errors, and is closed only with a **nfdc destroy** command.
50
Junxiao Shi1f481fa2017-01-26 15:14:43 +000051EXIT CODES
52----------
53
540: Success
55
561: An unspecified error occurred
57
582: Malformed command line
59
603: Face not found (**nfdc face show** only)
Junxiao Shi6c135622016-11-21 14:30:33 +000061
Junxiao Shi1d7fef52017-02-02 05:33:14 +0000624: FaceUri canonization failed (**nfdc face create** only)
63
Junxiao Shi6c135622016-11-21 14:30:33 +000064SEE ALSO
65--------
66nfd(1), nfdc(1)