Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 1 | nfdc-face |
| 2 | ========= |
| 3 | |
| 4 | SYNOPSIS |
| 5 | -------- |
| 6 | | nfdc face [list] |
Junxiao Shi | d695801 | 2017-02-20 03:34:48 +0000 | [diff] [blame^] | 7 | | nfdc face show [id] <FACEID> |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 8 | | nfdc face create [remote] <FACEURI> [[persistency] <PERSISTENCY>] |
Junxiao Shi | d695801 | 2017-02-20 03:34:48 +0000 | [diff] [blame^] | 9 | | nfdc face destroy [face] <FACEID|FACEURI> |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 10 | | nfdc channel [list] |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 11 | |
| 12 | DESCRIPTION |
| 13 | ----------- |
| 14 | In NFD, a face is the generalization of network interface. |
| 15 | It could be a physical network interface to communicate on a physical link, |
| 16 | an overlay communication channel between NFD and a remote node, |
| 17 | or an inter-process communication channel between NFD and a local application. |
| 18 | |
| 19 | The **nfdc face list** command shows a list of faces, their properties, and statistics. |
| 20 | |
Junxiao Shi | 1f481fa | 2017-01-26 15:14:43 +0000 | [diff] [blame] | 21 | The **nfdc face show** command shows properties and statistics of one specific face. |
| 22 | |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 23 | The **nfdc face create** command creates a unicast UDP or TCP face. |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 24 | |
Junxiao Shi | 05dd444 | 2017-02-06 22:50:07 +0000 | [diff] [blame] | 25 | The **nfdc face destroy** command destroys an existing face. |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 26 | |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 27 | The **nfdc channel list** command shows a list of channels. |
| 28 | Channels are listening sockets that can accept incoming connections and create new faces. |
| 29 | |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 30 | OPTIONS |
| 31 | ------- |
Junxiao Shi | f0dfb33 | 2017-02-02 05:32:25 +0000 | [diff] [blame] | 32 | <FACEID> |
Junxiao Shi | 1f481fa | 2017-01-26 15:14:43 +0000 | [diff] [blame] | 33 | Numerical identifier of the face. |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 34 | It is displayed in the output of **nfdc face list** and **nfdc face create** commands. |
Junxiao Shi | 1f481fa | 2017-01-26 15:14:43 +0000 | [diff] [blame] | 35 | |
Junxiao Shi | f0dfb33 | 2017-02-02 05:32:25 +0000 | [diff] [blame] | 36 | <FACEURI> |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 37 | An URI representing the remote endpoint of a face. |
| 38 | Its syntax is: |
| 39 | |
| 40 | - udp[4|6]://<IP-or-host>[:<port>] |
| 41 | - tcp[4|6]://<IP-or-host>[:<port>] |
| 42 | |
| 43 | When a hostname is specified, a DNS query is used to obtain the IP address. |
| 44 | |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 45 | <PERSISTENCY> |
| 46 | Either "persistent" or "permanent". |
| 47 | A "persistent" face (the default) is closed when a socket error occurs. |
| 48 | A "permanent" face survives socket errors, and is closed only with a **nfdc destroy** command. |
| 49 | |
Junxiao Shi | 1f481fa | 2017-01-26 15:14:43 +0000 | [diff] [blame] | 50 | EXIT CODES |
| 51 | ---------- |
| 52 | |
| 53 | 0: Success |
| 54 | |
| 55 | 1: An unspecified error occurred |
| 56 | |
| 57 | 2: Malformed command line |
| 58 | |
Junxiao Shi | 05dd444 | 2017-02-06 22:50:07 +0000 | [diff] [blame] | 59 | 3: Face not found (**nfdc face show** and **nfdc face destroy** only) |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 60 | |
Junxiao Shi | 05dd444 | 2017-02-06 22:50:07 +0000 | [diff] [blame] | 61 | 4: FaceUri canonization failed (**nfdc face create** and **nfdc face destroy** only) |
| 62 | |
| 63 | 5: Ambiguous: multiple matching faces are found (**nfdc face destroy** only) |
Junxiao Shi | 1d7fef5 | 2017-02-02 05:33:14 +0000 | [diff] [blame] | 64 | |
Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 65 | SEE ALSO |
| 66 | -------- |
| 67 | nfd(1), nfdc(1) |