Diag-Client-Lib
diag-client-lib
appl
src
dcm
connection
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
9
#include "
src/dcm/connection/uds_transport_protocol_manager.h
"
10
11
#include "
doip_transport_protocol_handler.h
"
12
13
namespace
diag
{
14
namespace
client {
15
namespace
uds_transport
{
16
//ctor
17
UdsTransportProtocolManager::UdsTransportProtocolManager
(
/* pass the protocol kind */
)
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
22
void
UdsTransportProtocolManager::Startup
() {
23
//Initialize all the handlers in box
24
doip_transport_handler
->Initialize();
25
}
26
27
// start all the transport protocol handler
28
void
UdsTransportProtocolManager::Run
() {
29
//Start all the handlers in box
30
doip_transport_handler
->Start();
31
}
32
33
// terminate all the transport protocol handler
34
void
UdsTransportProtocolManager::Shutdown
() {
35
//Stop all the handlers in box
36
doip_transport_handler
->Stop();
37
}
38
39
::uds_transport::UdsTransportProtocolHandler
&
UdsTransportProtocolManager::GetTransportProtocolHandler
() {
40
return
*
doip_transport_handler
;
41
}
42
}
// namespace uds_transport
43
}
// namespace client
44
}
// namespace diag
diag::client::uds_transport::UdsTransportProtocolManager::Shutdown
void Shutdown() override
Definition:
uds_transport_protocol_manager.cpp:34
diag::client::uds_transport::UdsTransportProtocolManager::GetTransportProtocolHandler
::uds_transport::UdsTransportProtocolHandler & GetTransportProtocolHandler()
Definition:
uds_transport_protocol_manager.cpp:39
diag::client::uds_transport::UdsTransportProtocolManager::UdsTransportProtocolManager
UdsTransportProtocolManager()
Definition:
uds_transport_protocol_manager.cpp:17
diag::client::uds_transport::UdsTransportProtocolManager::Run
void Run() override
Definition:
uds_transport_protocol_manager.cpp:28
diag::client::uds_transport::UdsTransportProtocolManager::doip_transport_handler
std::unique_ptr<::uds_transport::UdsTransportProtocolHandler > doip_transport_handler
Definition:
uds_transport_protocol_manager.h:42
diag::client::uds_transport::UdsTransportProtocolManager::Startup
void Startup() override
Definition:
uds_transport_protocol_manager.cpp:22
uds_transport::UdsTransportProtocolHandler
Definition:
protocol_handler.h:22
doip_transport_protocol_handler.h
diag
Definition:
create_diagnostic_client.h:14
doip_client
Definition:
doip_diagnostic_message_handler.cpp:20
uds_transport
Definition:
connection.h:18
uds_transport_protocol_manager.h
Generated by
1.9.1