#include #include "socket.h" int main(int argc, char* argv[]) { QCoreApplication a(argc, argv); UdpSocket server; UdpSocket client; client.sayHello(); server.sayHello(); client.sayMsg("MsgC"); server.sayMsg("MsgS"); return a.exec(); }