well that's just not fair then!

here's my new .cpp file (and i moved the constructor):
Qt Code:
  1. #include "jaus.h"
  2.  
  3. Jaus_neighbor::Jaus_neighbor()
  4. {
  5. udpSocket = new QUdpSocket(this);
  6. for (int i = 0; i < 4; i++)
  7. {
  8. header.dest_id[i] = 0;
  9. header.source_id[i] = 0;
  10. }
  11. header.sequence_num = 0;
  12. header.data_control = 0;
  13. header.message_properties = 0;
  14. header.command_code = 0;
  15. }
  16.  
  17. void Jaus_neighbor::startBroadcasting()
  18. {
  19.  
  20. }
  21.  
  22. void Jaus_neighbor::stopBroadcasting()
  23. {
  24.  
  25. }
  26.  
  27. void Jaus_neighbor::sendDatagram()
  28. {
  29. //udpSocket->writeDatagram(message, QHostAddress::LocalHost, 9000);
  30. }
  31.  
  32.  
  33. void Jaus_neighbor::handshake()
  34. {
  35. Jaus_neighbor::startBroadcasting();
  36. }
  37.  
  38. void Jaus_neighbor::prepare_header(){}
  39. void Jaus_neighbor::read_jheader(){}
  40. void Jaus_neighbor::send_jheader(){}
  41. void Jaus_neighbor::do_command(){}
To copy to clipboard, switch view to plain text mode 

Same error though