Project

General

Profile

Feature #2189

Updated by Junxiao Shi about 10 years ago

Add a `transport` option to `client.conf`.   
 Its value is a FaceUri that represents a listener. This FaceUri does not have to be canonical. 

 To pick UnixTransport: `transport=unix:///var/run/nfd.sock`   
 Path can be changed if necessary. 

 To pick TcpTransport: `transport=tcp://localhost:6363`   
 Port can be changed if necessary. 
 "tcp://localhost" is recommended; other variants such as "tcp4://127.0.0.1" or "tcp6://[::1]" is acceptable but not recommended. 
 Connecting to a non-local endpoint is unsupported but not forbidden. 

 The default constructor of Face class should respect this configuration, instead of always creating UnixTransport. 

 To pick UnixTransport: 

     transport=unix 
     unix_socket=/var/run/nfd.sock 

 To pick TcpTransport: 

     transport=tcp 
     host=localhost 
     port=6363

Back