Пример #1
0
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()));
}
Пример #2
0
Udp::Udp(QObject *parent, quint16 _port) :
    QObject(parent) {
    port = _port;

    socket = new QUdpSocket(this);
    connect(socket, SIGNAL(readyRead()), SLOT(parseOSC()));

    //show();

    open();
}
Пример #3
0
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();
}