well that's just not fair then!
here's my new .cpp file (and i moved the constructor):
#include "jaus.h"
Jaus_neighbor::Jaus_neighbor()
{
for (int i = 0; i < 4; i++)
{
header.dest_id[i] = 0;
header.source_id[i] = 0;
}
header.sequence_num = 0;
header.data_control = 0;
header.message_properties = 0;
header.command_code = 0;
}
void Jaus_neighbor::startBroadcasting()
{
}
void Jaus_neighbor::stopBroadcasting()
{
}
void Jaus_neighbor::sendDatagram()
{
//udpSocket->writeDatagram(message, QHostAddress::LocalHost, 9000);
}
void Jaus_neighbor::handshake()
{
Jaus_neighbor::startBroadcasting();
}
void Jaus_neighbor::prepare_header(){}
void Jaus_neighbor::read_jheader(){}
void Jaus_neighbor::send_jheader(){}
void Jaus_neighbor::do_command(){}
#include "jaus.h"
Jaus_neighbor::Jaus_neighbor()
{
udpSocket = new QUdpSocket(this);
for (int i = 0; i < 4; i++)
{
header.dest_id[i] = 0;
header.source_id[i] = 0;
}
header.sequence_num = 0;
header.data_control = 0;
header.message_properties = 0;
header.command_code = 0;
}
void Jaus_neighbor::startBroadcasting()
{
}
void Jaus_neighbor::stopBroadcasting()
{
}
void Jaus_neighbor::sendDatagram()
{
//udpSocket->writeDatagram(message, QHostAddress::LocalHost, 9000);
}
void Jaus_neighbor::handshake()
{
Jaus_neighbor::startBroadcasting();
}
void Jaus_neighbor::prepare_header(){}
void Jaus_neighbor::read_jheader(){}
void Jaus_neighbor::send_jheader(){}
void Jaus_neighbor::do_command(){}
To copy to clipboard, switch view to plain text mode
Same error though
Bookmarks