|
Robot Raconteur Core C++ Library
|
Initializes a RobotRaconteurNode instance to default configuration for a secure server and client node. More...
#include <NodeSetup.h>
Public Member Functions | |
| SecureServerNodeSetup (const boost::shared_ptr< RobotRaconteurNode > &node, const std::vector< boost::shared_ptr< ServiceFactory > > &service_types, const std::string &node_name, uint16_t tcp_port=0, uint32_t flags=RobotRaconteurNodeSetupFlags_SECURE_SERVER_DEFAULT) | |
| Construct a new SecureServerNodeSetup and initialize specified RobotRaconteurNode without command line options. | |
| SecureServerNodeSetup (const std::vector< boost::shared_ptr< ServiceFactory > > &service_types, const std::string &node_name, uint16_t tcp_port=0, uint32_t flags=RobotRaconteurNodeSetupFlags_SECURE_SERVER_DEFAULT) | |
| Construct a new SecureServerNodeSetup and initialize the singleton RobotRaconteurNode without command line options. | |
| SecureServerNodeSetup (const boost::shared_ptr< RobotRaconteurNode > &node, const std::vector< boost::shared_ptr< ServiceFactory > > &service_types, const std::string &node_name, uint16_t tcp_port, int argc, char *argv[]) | |
| Construct a new SecureServerNodeSetup and initialize specified RobotRaconteurNode with command line options. | |
| SecureServerNodeSetup (const std::vector< boost::shared_ptr< ServiceFactory > > &service_types, const std::string &node_name, uint16_t tcp_port, int argc, char *argv[]) | |
| Construct a new SecureServerNodeSetup and initialize the singleton RobotRaconteurNode with command line options. | |
| SecureServerNodeSetup (const boost::shared_ptr< RobotRaconteurNode > &node, const std::vector< boost::shared_ptr< ServiceFactory > > &service_types, const std::string &node_name, uint16_t tcp_port, const std::vector< std::string > &args) | |
| Construct a new SecureServerNodeSetup and initialize specified RobotRaconteurNode with command line options. | |
| SecureServerNodeSetup (const std::vector< boost::shared_ptr< ServiceFactory > > &service_types, const std::string &node_name, uint16_t tcp_port, const std::vector< std::string > &args) | |
| Construct a new SecureServerNodeSetup and initialize the singleton RobotRaconteurNode with command line options. | |
| boost::shared_ptr< LocalTransport > | GetLocalTransport () |
| Get the LocalTransport. | |
| boost::shared_ptr< TcpTransport > | GetTcpTransport () |
| Get the TcpTransport. | |
| boost::shared_ptr< HardwareTransport > | GetHardwareTransport () |
| Get the HardwareTransport. | |
| boost::shared_ptr< IntraTransport > | GetIntraTransport () |
| Get the IntraTransport. | |
| boost::shared_ptr< CommandLineConfigParser > | GetCommandLineConfig () |
| Get the command line config parser object used to configure node. | |
| void | ReleaseNode () |
| Release the node from lifecycle management. | |
Initializes a RobotRaconteurNode instance to default configuration for a secure server and client node.
SecureServerNodeSetup is a subclass of RobotRaconteurNodeSetup providing default configuration for a secure RobotRaconteurNode instance that is used as a server to accept incoming client connections and to initiate client connections. SecureServerNodeSetup is identical to ServerNodeSetup, except that it requires TLS for all network communication.
ServerNodeSetup requires a NodeName, and a TCP port if LocalTransport and TcpTransport are enabled (default behavior).
See Command Line Options for more information on available command line options.
Note: String table and HardwareTransport are disabled by default. They can be enabled using command line options.
By default, the configuration will do the following:
Most users will not need to be concerned with these details, and can simply use the default configuration.
| RobotRaconteur::SecureServerNodeSetup::SecureServerNodeSetup | ( | const boost::shared_ptr< RobotRaconteurNode > & | node, |
| const std::vector< boost::shared_ptr< ServiceFactory > > & | service_types, | ||
| const std::string & | node_name, | ||
| uint16_t | tcp_port = 0, | ||
| uint32_t | flags = RobotRaconteurNodeSetupFlags_SECURE_SERVER_DEFAULT ) |
Construct a new SecureServerNodeSetup and initialize specified RobotRaconteurNode without command line options.
service_types may be ROBOTRACONTEUR_SERVICE_TYPES if "robotraconteur_generated.h" is included.
| node | The node to configure and manage lifecycle |
| service_types | The service types to register |
| node_name | The node name for LocalTransport and RobotRaconteurNode |
| tcp_port | The port to listen on for TcpTransport |
| flags | The node configuration flags |
| RobotRaconteur::SecureServerNodeSetup::SecureServerNodeSetup | ( | const std::vector< boost::shared_ptr< ServiceFactory > > & | service_types, |
| const std::string & | node_name, | ||
| uint16_t | tcp_port = 0, | ||
| uint32_t | flags = RobotRaconteurNodeSetupFlags_SECURE_SERVER_DEFAULT ) |
Construct a new SecureServerNodeSetup and initialize the singleton RobotRaconteurNode without command line options.
Configures RobotRaconteurNode::s() and manages its lifecycle
service_types may be ROBOTRACONTEUR_SERVICE_TYPES if "robotraconteur_generated.h" is included.
| service_types | The service types to register |
| node_name | The node name for LocalTransport and RobotRaconteurNode |
| tcp_port | The port to listen on for TcpTransport |
| flags | The node configuration flags |
| RobotRaconteur::SecureServerNodeSetup::SecureServerNodeSetup | ( | const boost::shared_ptr< RobotRaconteurNode > & | node, |
| const std::vector< boost::shared_ptr< ServiceFactory > > & | service_types, | ||
| const std::string & | node_name, | ||
| uint16_t | tcp_port, | ||
| int | argc, | ||
| char * | argv[] ) |
Construct a new SecureServerNodeSetup and initialize specified RobotRaconteurNode with command line options.
service_types may be ROBOTRACONTEUR_SERVICE_TYPES if "robotraconteur_generated.h" is included.
See Command Line Options for more information on available command line options.
| node | The node to configure and manage lifecycle |
| service_types | The service types to register |
| node_name | The node name for LocalTransport and RobotRaconteurNode |
| tcp_port | The port to listen on for TcpTransport |
| argc | The number of command line arguments in argv vector |
| argv | The command line argument vector |
| RobotRaconteur::SecureServerNodeSetup::SecureServerNodeSetup | ( | const std::vector< boost::shared_ptr< ServiceFactory > > & | service_types, |
| const std::string & | node_name, | ||
| uint16_t | tcp_port, | ||
| int | argc, | ||
| char * | argv[] ) |
Construct a new SecureServerNodeSetup and initialize the singleton RobotRaconteurNode with command line options.
service_types may be ROBOTRACONTEUR_SERVICE_TYPES if "robotraconteur_generated.h" is included.
See Command Line Options for more information on available command line options.
| service_types | The service types to register |
| node_name | The node name for LocalTransport and RobotRaconteurNode |
| tcp_port | The port to listen on for TcpTransport |
| argc | The number of command line arguments in argv vector |
| argv | The command line argument vector |
| RobotRaconteur::SecureServerNodeSetup::SecureServerNodeSetup | ( | const boost::shared_ptr< RobotRaconteurNode > & | node, |
| const std::vector< boost::shared_ptr< ServiceFactory > > & | service_types, | ||
| const std::string & | node_name, | ||
| uint16_t | tcp_port, | ||
| const std::vector< std::string > & | args ) |
Construct a new SecureServerNodeSetup and initialize specified RobotRaconteurNode with command line options.
service_types may be ROBOTRACONTEUR_SERVICE_TYPES if "robotraconteur_generated.h" is included.
See Command Line Options for more information on available command line options.
| node | The node to configure and manage lifecycle |
| service_types | The service types to register |
| node_name | The node name for LocalTransport and RobotRaconteurNode |
| tcp_port | The port to listen on for TcpTransport |
| args | The command line options as a string vector |
| RobotRaconteur::SecureServerNodeSetup::SecureServerNodeSetup | ( | const std::vector< boost::shared_ptr< ServiceFactory > > & | service_types, |
| const std::string & | node_name, | ||
| uint16_t | tcp_port, | ||
| const std::vector< std::string > & | args ) |
Construct a new SecureServerNodeSetup and initialize the singleton RobotRaconteurNode with command line options.
service_types may be ROBOTRACONTEUR_SERVICE_TYPES if "robotraconteur_generated.h" is included.
See Command Line Options for more information on available command line options.
| service_types | The service types to register |
| node_name | The node name for LocalTransport and RobotRaconteurNode |
| tcp_port | The port to listen on for TcpTransport |
| args | The command line options as a string vector |
|
inherited |
Get the command line config parser object used to configure node.
|
inherited |
Get the HardwareTransport.
Will be null if HardwareTransport is not specified in flags
Note: Hardware transport is not enabled by default
|
inherited |
Get the IntraTransport.
Will be null if IntraTransport is not specified in flags
|
inherited |
Get the LocalTransport.
Will be null if LocalTransport is not specified in flags
|
inherited |
Get the TcpTransport.
Will be null if TcpTransport is not specified in flags
|
inherited |
Release the node from lifecycle management.
If called, RobotRaconteurNode::Shutdown() will not be called when the node setup instance is destroyed