File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
include/ur_client_library/primary Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ class PrimaryClient
6666 * \param primary_consumer Primary consumer that should be removed from the list
6767 */
6868 void removePrimaryConsumer (std::shared_ptr<comm::IConsumer<PrimaryPackage>> primary_consumer);
69- void start ();
69+ void start (const size_t max_num_tries = 0 ,
70+ const std::chrono::milliseconds reconnection_time = urcl::comm::TCPSocket::DEFAULT_RECONNECTION_TIME);
7071
7172 /* !
7273 * \brief Retrieves previously raised error codes from PrimaryClient. After calling this, recorded errors will be
Original file line number Diff line number Diff line change @@ -60,10 +60,10 @@ PrimaryClient::~PrimaryClient()
6060 pipeline_->stop ();
6161}
6262
63- void PrimaryClient::start ()
63+ void PrimaryClient::start (const size_t max_num_tries, const std::chrono::milliseconds reconnection_time )
6464{
6565 URCL_LOG_INFO (" Starting primary client pipeline" );
66- pipeline_->init ();
66+ pipeline_->init (max_num_tries, reconnection_time );
6767 pipeline_->run ();
6868}
6969
Original file line number Diff line number Diff line change @@ -708,7 +708,7 @@ void UrDriver::setupReverseInterface(const uint32_t reverse_port)
708708
709709void UrDriver::startPrimaryClientCommunication ()
710710{
711- primary_client_->start ();
711+ primary_client_->start (socket_connection_attempts_, socket_reconnection_timeout_ );
712712}
713713
714714std::deque<urcl::primary_interface::ErrorCode> UrDriver::getErrorCodes ()
You can’t perform that action at this time.
0 commit comments