udp polling taks init

This commit is contained in:
Robin Müller 2020-07-05 20:42:05 +02:00
parent 327b1e9d2f
commit 2395e487ae
2 changed files with 12 additions and 0 deletions

View File

@ -6,3 +6,11 @@ TcSocketPollingTask::TcSocketPollingTask(object_id_t objectId,
TcSocketPollingTask::~TcSocketPollingTask() { TcSocketPollingTask::~TcSocketPollingTask() {
} }
ReturnValue_t TcSocketPollingTask::performOperation(uint8_t opCode) {
return HasReturnvaluesIF::RETURN_OK;
}
ReturnValue_t TcSocketPollingTask::initialize() {
return HasReturnvaluesIF::RETURN_OK;
}

View File

@ -2,6 +2,7 @@
#define FRAMEWORK_OSAL_LINUX_TCSOCKETPOLLINGTASK_H_ #define FRAMEWORK_OSAL_LINUX_TCSOCKETPOLLINGTASK_H_
#include <framework/objectmanager/SystemObject.h> #include <framework/objectmanager/SystemObject.h>
#include <framework/tasks/ExecutableObjectIF.h> #include <framework/tasks/ExecutableObjectIF.h>
#include <sys/socket.h>
/** /**
* @brief This class can be used to implement the polling of a Unix socket, * @brief This class can be used to implement the polling of a Unix socket,
@ -14,6 +15,7 @@
*/ */
class TcSocketPollingTask: public SystemObject, class TcSocketPollingTask: public SystemObject,
public ExecutableObjectIF { public ExecutableObjectIF {
friend class TmTcUnixUdpBridge;
public: public:
TcSocketPollingTask(object_id_t objectId, object_id_t tmtcUnixUdpBridge); TcSocketPollingTask(object_id_t objectId, object_id_t tmtcUnixUdpBridge);
virtual~ TcSocketPollingTask(); virtual~ TcSocketPollingTask();
@ -21,6 +23,8 @@ public:
virtual ReturnValue_t performOperation(uint8_t opCode) override; virtual ReturnValue_t performOperation(uint8_t opCode) override;
virtual ReturnValue_t initialize() override; virtual ReturnValue_t initialize() override;
private: private:
//! Sender Address is cached here.
const struct sockaddr senderAddress;
}; };