ITS
caReceptionManagement Class Reference

#include <caReceptionManagement.h>

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

Public Slots

void readDatagram ()
 readDatagram Slot used when a datagram is received. More...
 

Public Member Functions

 caReceptionManagement (ParameterNetwork *network)
 
 ~caReceptionManagement ()
 ~caReceptionManagement caReceptionManagement destructor. More...
 
bool decodeCam (QByteArray data)
 decodeCam Try to decode received CAM. More...
 

Private Member Functions

void camEventIndication (QByteArray packet)
 camEventIndication Notify the Application of receiving a CAM. More...
 

Private Attributes

QUdpSocket * cam2app
 
quint16 appPort
 
QUdpSocket * m_internalSocket
 

Detailed Description

Definition at line 24 of file caReceptionManagement.h.

Constructor & Destructor Documentation

◆ caReceptionManagement()

caReceptionManagement::caReceptionManagement ( ParameterNetwork network)

brief caReceptionManagement caReceptionManagement constructor.

Parameters
networkNetwork configuration.

Definition at line 3 of file caReceptionManagement.cpp.

References ParameterNetwork::addBTPPort(), ParameterNetwork::addPort(), appPort, cam2app, ParameterNetwork::camDestinationPort(), ParameterNetwork::camDestinationPortInfo(), ParameterNetwork::internalBTPPort(), ParameterNetwork::internalPort(), m_internalSocket, and readDatagram().

Here is the call graph for this function:

◆ ~caReceptionManagement()

caReceptionManagement::~caReceptionManagement ( )

~caReceptionManagement caReceptionManagement destructor.

Definition at line 18 of file caReceptionManagement.cpp.

References cam2app, and m_internalSocket.

Member Function Documentation

◆ camEventIndication()

void caReceptionManagement::camEventIndication ( QByteArray  packet)
private

camEventIndication Notify the Application of receiving a CAM.

Parameters
packetThe CAM notification.

Definition at line 73 of file caReceptionManagement.cpp.

References appPort, cam2app, and UpperTesterPrimitives::PRIMITIVE_utCamEventInd.

Referenced by readDatagram().

Here is the caller graph for this function:

◆ decodeCam()

bool caReceptionManagement::decodeCam ( QByteArray  data)

decodeCam Try to decode received CAM.

Parameters
dataThe received CAM.
Returns
True if success.

Definition at line 42 of file caReceptionManagement.cpp.

References asn_DEF_CAM, messageID_cam, print_hexa(), protocolVersion_currentVersion, RC_FAIL, RC_OK, and uper_decode_complete().

Referenced by readDatagram().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readDatagram

void caReceptionManagement::readDatagram ( )
slot

readDatagram Slot used when a datagram is received.

Definition at line 26 of file caReceptionManagement.cpp.

References camEventIndication(), decodeCam(), and m_internalSocket.

Referenced by caReceptionManagement().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ appPort

quint16 caReceptionManagement::appPort
private

Application / UpperTester port.

Definition at line 62 of file caReceptionManagement.h.

Referenced by camEventIndication(), and caReceptionManagement().

◆ cam2app

QUdpSocket* caReceptionManagement::cam2app
private

UDP socket to communicate with the Application / UpperTester layer.

Definition at line 61 of file caReceptionManagement.h.

Referenced by camEventIndication(), caReceptionManagement(), and ~caReceptionManagement().

◆ m_internalSocket

QUdpSocket* caReceptionManagement::m_internalSocket
private

UDP socket used for CAM reception.

Definition at line 64 of file caReceptionManagement.h.

Referenced by caReceptionManagement(), readDatagram(), and ~caReceptionManagement().


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