ITS
ParameterNetwork Class Reference

#include <ParameterNetwork.h>

Inheritance diagram for ParameterNetwork:
[legend]
Collaboration diagram for ParameterNetwork:
[legend]

Public Member Functions

 ParameterNetwork ()
 ParameterNetwork ParameterNetwork constructor. More...
 
 ~ParameterNetwork ()
 ~ParameterNetwork ParameterNetwork destructor. More...
 
quint16 internalBTPPort (quint16 port, quint16 portInfo)
 internalBTPPort Get the internal BTP port. More...
 
quint16 internalBTPPort (quint32 concatenate)
 internalBTPPort Get the internal BTP port from entire BTP port number. More...
 
quint16 internalPort (QString service)
 internalPort Get the internal BTP port from service name. More...
 
void addBTPPort (quint16 port, quint16 portInfo, quint16 internal)
 addBTPPort Add BTP port to the internal BTP ports. More...
 
void addBTPPort (quint32 concatenate, quint16 internal)
 addBTPPort Add BTP port to the internal BTP ports from entire BTP port number. More...
 
void addPort (QString service, quint16 port)
 addPort Add BTP port to the internal BTP ports from service name. More...
 
void read ()
 read Configuration file reading. More...
 
void readDebug ()
 readDebug Configuration printing. More...
 
quint16 camDestinationPort () const
 camDestinationPort CAM destination port getter. More...
 
quint16 camDestinationPortInfo () const
 camDestinationPortInfo CAM destination port info getter. More...
 
quint16 denmDestinationPort () const
 denmDestinationPort DENM destination port getter. More...
 
quint16 denmDestinationPortInfo () const
 denmDestinationPortInfo DENM destination port info getter. More...
 

Public Attributes

int rawSocket
 
struct ifreq if_idx
 
struct sockaddr_ll socket_address
 
char sendbuf [BUF_SIZ]
 
struct ether_header eh
 
char ifName [IFNAMSIZ]
 

Private Attributes

QHash< quint32, quint16 > m_internalBTPPort
 
QHash< QString, quint16 > m_internalPort
 
quint16 m_camDestinationPort
 
quint16 m_camDestinationPortInfo
 
quint16 m_denmDestinationPort
 
quint16 m_denmDestinationPortInfo
 

Detailed Description

Definition at line 26 of file ParameterNetwork.h.

Constructor & Destructor Documentation

◆ ParameterNetwork()

ParameterNetwork::ParameterNetwork ( )

ParameterNetwork ParameterNetwork constructor.

Definition at line 3 of file ParameterNetwork.cpp.

References read(), and readDebug().

Here is the call graph for this function:

◆ ~ParameterNetwork()

ParameterNetwork::~ParameterNetwork ( )

~ParameterNetwork ParameterNetwork destructor.

Definition at line 9 of file ParameterNetwork.cpp.

Member Function Documentation

◆ addBTPPort() [1/2]

void ParameterNetwork::addBTPPort ( quint16  port,
quint16  portInfo,
quint16  internal 
)
inline

addBTPPort Add BTP port to the internal BTP ports.

Parameters
portThe BTP destination port.
portInfoThe BTP source / destination port info.
internalThe internal BTP port.

Definition at line 86 of file ParameterNetwork.h.

References m_internalBTPPort.

Referenced by caReceptionManagement::caReceptionManagement(), and denReceptionManagement::denReceptionManagement().

Here is the caller graph for this function:

◆ addBTPPort() [2/2]

void ParameterNetwork::addBTPPort ( quint32  concatenate,
quint16  internal 
)
inline

addBTPPort Add BTP port to the internal BTP ports from entire BTP port number.

Parameters
concatenateThe BTP ports.
internalThe internal BTP port.

Definition at line 92 of file ParameterNetwork.h.

References m_internalBTPPort.

◆ addPort()

void ParameterNetwork::addPort ( QString  service,
quint16  port 
)
inline

addPort Add BTP port to the internal BTP ports from service name.

Parameters
serviceThe service name.
portThe internal BTP port.

Definition at line 98 of file ParameterNetwork.h.

References m_internalPort.

Referenced by ApplicationManagement::ApplicationManagement(), caReceptionManagement::caReceptionManagement(), denBasicService::denBasicService(), and denReceptionManagement::denReceptionManagement().

Here is the caller graph for this function:

◆ camDestinationPort()

quint16 ParameterNetwork::camDestinationPort ( ) const
inline

camDestinationPort CAM destination port getter.

Returns
The CAM destination port.

Definition at line 113 of file ParameterNetwork.h.

References m_camDestinationPort.

Referenced by caReceptionManagement::caReceptionManagement().

Here is the caller graph for this function:

◆ camDestinationPortInfo()

quint16 ParameterNetwork::camDestinationPortInfo ( ) const
inline

camDestinationPortInfo CAM destination port info getter.

Returns
The CAM destination port.

Definition at line 118 of file ParameterNetwork.h.

References m_camDestinationPortInfo.

Referenced by caReceptionManagement::caReceptionManagement().

Here is the caller graph for this function:

◆ denmDestinationPort()

quint16 ParameterNetwork::denmDestinationPort ( ) const
inline

denmDestinationPort DENM destination port getter.

Returns
The DENM destination port.

Definition at line 124 of file ParameterNetwork.h.

References m_denmDestinationPort.

Referenced by denReceptionManagement::denReceptionManagement().

Here is the caller graph for this function:

◆ denmDestinationPortInfo()

quint16 ParameterNetwork::denmDestinationPortInfo ( ) const
inline

denmDestinationPortInfo DENM destination port info getter.

Returns
The DENM destination port.

Definition at line 129 of file ParameterNetwork.h.

References m_denmDestinationPortInfo.

Referenced by denReceptionManagement::denReceptionManagement().

Here is the caller graph for this function:

◆ internalBTPPort() [1/2]

quint16 ParameterNetwork::internalBTPPort ( quint16  port,
quint16  portInfo 
)
inline

internalBTPPort Get the internal BTP port.

Parameters
portThe BTP destination port.
portInfoThe BTP source / destination port info.
Returns
The internal BTP port.

Definition at line 51 of file ParameterNetwork.h.

References m_internalBTPPort.

Referenced by caReceptionManagement::caReceptionManagement(), denReceptionManagement::denReceptionManagement(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::shbPacketProcessing(), and GeoNet::tsbPacketProcessing().

Here is the caller graph for this function:

◆ internalBTPPort() [2/2]

quint16 ParameterNetwork::internalBTPPort ( quint32  concatenate)
inline

internalBTPPort Get the internal BTP port from entire BTP port number.

Parameters
concatenateThe BTP ports.
Returns
The internal BTP port.

Definition at line 62 of file ParameterNetwork.h.

References m_internalBTPPort.

◆ internalPort()

quint16 ParameterNetwork::internalPort ( QString  service)
inline

internalPort Get the internal BTP port from service name.

Parameters
serviceThe service name.
Returns
The internal BTP port.

Definition at line 73 of file ParameterNetwork.h.

References m_internalPort.

Referenced by caReceptionManagement::caReceptionManagement(), denBasicService::denBasicService(), denReceptionManagement::denReceptionManagement(), denTriggeringManagement::denTriggeringManagement(), ApplicationManagement::getUtPort(), and ApplicationManagement::sendMessageToFac().

Here is the caller graph for this function:

◆ read()

void ParameterNetwork::read ( )

read Configuration file reading.

Definition at line 13 of file ParameterNetwork.cpp.

References m_camDestinationPort, m_camDestinationPortInfo, m_denmDestinationPort, and m_denmDestinationPortInfo.

Referenced by ParameterNetwork().

Here is the caller graph for this function:

◆ readDebug()

void ParameterNetwork::readDebug ( )

readDebug Configuration printing.

Definition at line 41 of file ParameterNetwork.cpp.

References m_camDestinationPort, m_camDestinationPortInfo, m_denmDestinationPort, and m_denmDestinationPortInfo.

Referenced by ParameterNetwork().

Here is the caller graph for this function:

Member Data Documentation

◆ eh

◆ if_idx

struct ifreq ParameterNetwork::if_idx

ITS-G5 interface index.

Definition at line 39 of file ParameterNetwork.h.

Referenced by GeoNet::InitRawSocket_send().

◆ ifName

char ParameterNetwork::ifName[IFNAMSIZ]

Interface name.

Definition at line 43 of file ParameterNetwork.h.

Referenced by GeoNet::InitRawSocket_send().

◆ m_camDestinationPort

quint16 ParameterNetwork::m_camDestinationPort
private

CAM destination port.

Definition at line 135 of file ParameterNetwork.h.

Referenced by camDestinationPort(), read(), and readDebug().

◆ m_camDestinationPortInfo

quint16 ParameterNetwork::m_camDestinationPortInfo
private

CAM destination port info.

Definition at line 136 of file ParameterNetwork.h.

Referenced by camDestinationPortInfo(), read(), and readDebug().

◆ m_denmDestinationPort

quint16 ParameterNetwork::m_denmDestinationPort
private

DENM destination port.

Definition at line 138 of file ParameterNetwork.h.

Referenced by denmDestinationPort(), read(), and readDebug().

◆ m_denmDestinationPortInfo

quint16 ParameterNetwork::m_denmDestinationPortInfo
private

DENM destination port info.

Definition at line 139 of file ParameterNetwork.h.

Referenced by denmDestinationPortInfo(), read(), and readDebug().

◆ m_internalBTPPort

QHash<quint32, quint16> ParameterNetwork::m_internalBTPPort
private

HashMap of internals BTP ports.

Definition at line 132 of file ParameterNetwork.h.

Referenced by addBTPPort(), and internalBTPPort().

◆ m_internalPort

QHash<QString, quint16> ParameterNetwork::m_internalPort
private

HashMap of internals BTP ports from service name.

Definition at line 133 of file ParameterNetwork.h.

Referenced by addPort(), and internalPort().

◆ rawSocket

int ParameterNetwork::rawSocket

◆ sendbuf

char ParameterNetwork::sendbuf[BUF_SIZ]

◆ socket_address

struct sockaddr_ll ParameterNetwork::socket_address

The documentation for this class was generated from the following files: