Diag-Client-Lib
uds_transport_protocol_manager.cpp
Go to the documentation of this file.
1 /* Diagnostic Client library
2  * Copyright (C) 2024 Avijit Dey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
10 
12 
13 namespace diag {
14 namespace client {
15 namespace uds_transport {
16 //ctor
18  : doip_transport_handler{std::make_unique<doip_client::transport_protocol_handler::DoipTransportProtocolHandler>(
19  handler_id_count, *this)} {}
20 
21 // initialize all the transport protocol handler
23  //Initialize all the handlers in box
24  doip_transport_handler->Initialize();
25 }
26 
27 // start all the transport protocol handler
29  //Start all the handlers in box
30  doip_transport_handler->Start();
31 }
32 
33 // terminate all the transport protocol handler
35  //Stop all the handlers in box
36  doip_transport_handler->Stop();
37 }
38 
40  return *doip_transport_handler;
41 }
42 } // namespace uds_transport
43 } // namespace client
44 } // namespace diag
::uds_transport::UdsTransportProtocolHandler & GetTransportProtocolHandler()
std::unique_ptr<::uds_transport::UdsTransportProtocolHandler > doip_transport_handler