Diag-Client-Lib
diag-client-lib
appl
src
diag-client
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 "
diag-client/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
(
18
/* pass the protocol kind */
)
19
: doip_transport_handler{
20
std::make_unique<
doip_client
::transport_protocol_handler::DoipTransportProtocolHandler>(
21
handler_id_count, *this)} {}
22
23
// initialize all the transport protocol handler
24
void
UdsTransportProtocolManager::Startup
() {
25
//Initialize all the handlers in box
26
doip_transport_handler
->Initialize();
27
}
28
29
// start all the transport protocol handler
30
void
UdsTransportProtocolManager::Run
() {
31
//Start all the handlers in box
32
doip_transport_handler
->Start();
33
}
34
35
// terminate all the transport protocol handler
36
void
UdsTransportProtocolManager::Shutdown
() {
37
//Stop all the handlers in box
38
doip_transport_handler
->Stop();
39
}
40
41
::uds_transport::UdsTransportProtocolHandler
&
42
UdsTransportProtocolManager::GetTransportProtocolHandler
() {
43
return
*
doip_transport_handler
;
44
}
45
}
// namespace uds_transport
46
}
// namespace client
47
}
// namespace diag
diag::client::uds_transport::UdsTransportProtocolManager::Shutdown
void Shutdown() override
Definition:
uds_transport_protocol_manager.cpp:36
diag::client::uds_transport::UdsTransportProtocolManager::GetTransportProtocolHandler
::uds_transport::UdsTransportProtocolHandler & GetTransportProtocolHandler()
Definition:
uds_transport_protocol_manager.cpp:42
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:30
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:24
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:21
uds_transport_protocol_manager.h
Generated by
1.9.1