##// END OF EJS Templates
QSettings used in the lfrsgse to store the IP address of the echo bridge
QSettings used in the lfrsgse to store the IP address of the echo bridge

File last commit:

r14:304f5a6ad6b4 default
r28:66e3fbb189eb default
Show More
tcpackettosend.cpp
22 lines | 649 B | text/x-c | CppLexer
Add missing files to the repository
r14 #include "tcpackettosend.h"
TCPacketToSend::TCPacketToSend(char *Value, unsigned int count,
char targetLogicalAddress, char userApplication, unsigned int delay,
QObject *parent) :
QObject(parent)
{
this->Value = (char*) malloc(count);
for(unsigned int i=0; i<count;i++)
{
this->Value[i] = Value[i]; // local copy of the data pointed by Value
}
this->count = count;
this->targetLogicalAddress = targetLogicalAddress;
this->userApplication = userApplication;
this->delay = delay;
}
TCPacketToSend::~TCPacketToSend()
{
free(this->Value);
}