×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    12

    QUdpSocket problems on windows?

    Hi all,
    i'm still writing a QT application ( a listener ) : i have some problems on a QUdpSocket call.
    My environment

    a) WIn XP with firewall disabled.
    b) a external source emitting UDP datagrams ( via WiFi connection)

    this piece of code

    udpSocket = new QUdpSocket(this);
    QString sAdd = "211.0.0.1";
    QHostAddress address(sAdd);
    udpSocket->bind(address,3400)
    connect(udpSocket, SIGNAL(readyRead()),
    this, SLOT(readPendingDatagrams()));

    fail! ( in windows but not in Mac), Any suggestions?

    Thanks in advance

    Nico

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: QUdpSocket problems on windows?

    check udpSocket->errorString() for an error description.

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    12

    Re: QUdpSocket problems on windows?

    bind() was not called in QAbstractSocket::UnconnectedState , but the SIGNAL in connect is ReadyRead (?) We have tried to change the signal in connected() with the same result.

Similar Threads

  1. Nokia 6600 Bluetooth Problems on Windows 2003 server
    By sid_dubai in forum Bluetooth Technology
    Replies: 0
    Last Post: 2007-05-17, 04:32
  2. Replies: 16
    Last Post: 2007-01-09, 21:20
  3. Problems with the detection of phones on Windows 2000
    By mgarstecki in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2006-10-19, 13:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×