ExtUdpManager::ExtUdpManager(NxObjectFactoryInterface *_factory) : QObject(_factory), ExtMessageManager(_factory) { //Initialization factory = _factory; //Create a new UDP socket and bind signals socket = new QUdpSocket(this); connect(socket, SIGNAL(readyRead()), SLOT(parseOSC())); }
Udp::Udp(QObject *parent, quint16 _port) : QObject(parent) { port = _port; socket = new QUdpSocket(this); connect(socket, SIGNAL(readyRead()), SLOT(parseOSC())); //show(); open(); }
Udp::Udp(QWidget *parent, quint16 _port) : QWidget(parent), ui(new Ui::Udp) { ui->setupUi(this); port = _port; socket = new QUdpSocket(this); connect(socket, SIGNAL(readyRead()), SLOT(parseOSC())); //show(); open(); }