Junxiao Shi | 6c13562 | 2016-11-21 14:30:33 +0000 | [diff] [blame] | 1 | nfdc-face |
| 2 | ========= |
| 3 | |
| 4 | SYNOPSIS |
| 5 | -------- |
| 6 | | nfdc face [list] |
| 7 | | nfdc channel [list] |
| 8 | | nfdc create [-P] <faceUri> |
| 9 | | nfdc destroy <faceId|faceUri> |
| 10 | |
| 11 | DESCRIPTION |
| 12 | ----------- |
| 13 | In NFD, a face is the generalization of network interface. |
| 14 | It could be a physical network interface to communicate on a physical link, |
| 15 | an overlay communication channel between NFD and a remote node, |
| 16 | or an inter-process communication channel between NFD and a local application. |
| 17 | |
| 18 | The **nfdc face list** command shows a list of faces, their properties, and statistics. |
| 19 | |
| 20 | The **nfdc channel list** command shows a list of channels. |
| 21 | Channels are listening sockets that can accept incoming connections and create new faces. |
| 22 | |
| 23 | The **nfdc create** command creates a new UDP or TCP face. |
| 24 | |
| 25 | The **nfdc destroy** command destroys an existing face. |
| 26 | It has no effect if the specified face does not exist. |
| 27 | |
| 28 | OPTIONS |
| 29 | ------- |
| 30 | -P |
| 31 | Creates a "permanent" rather than persistent face. |
| 32 | A persistent face is closed when a socket error occrs. |
| 33 | A permanent face is kept alive upon socket errors, |
| 34 | and is closed only upon **nfdc destroy** command. |
| 35 | |
| 36 | <faceUri> |
| 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 | |
| 45 | <faceId> |
| 46 | Numerical identifier of the face. |
| 47 | It is displayed in the output of **nfdc face list** and **nfdc create** commands. |
| 48 | |
| 49 | SEE ALSO |
| 50 | -------- |
| 51 | nfd(1), nfdc(1) |