Results 1 to 2 of 2

Thread: QUdpSocket doubt

  1. #1
    Join Date
    Apr 2013
    Posts
    9
    Qt products
    Qt4 Qt5

    Default QUdpSocket doubt

    Hi all..

    I have created a QUdpSocket, bind with an ip address and port 1100, for transmission and reception. Transmission and Reception is working fine. But

    1) It is showing always error code "Unknown Socket Error". Why..??

    2) I have written connect signals error, disconnected, abouttoclose, etc in the program. But when we unplug the cable from the socket, none of them is invoking. I have tried to check isOpen, bytesavailable also.

    Anybody please tell me how we can implement this..? Its urgent..

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QUdpSocket doubt

    Quote Originally Posted by krsree View Post
    1) It is showing always error code "Unknown Socket Error". Why..??
    Because there is no "There is no error" enum. Check the error only if there are errors.

    2) I have written connect signals error, disconnected, abouttoclose, etc in the program. But when we unplug the cable from the socket, none of them is invoking. I have tried to check isOpen, bytesavailable also.
    Why would anything be invoked here? Unpluging the cable does not influence a UDP socket in any way.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. doubt
    By AnithaRagupathy in forum Qt Programming
    Replies: 1
    Last Post: 8th February 2008, 06:06
  2. doubt
    By deepa.selvaraj in forum Qt Programming
    Replies: 2
    Last Post: 12th November 2007, 09:23
  3. Doubt ?
    By Cutey in forum Qt Tools
    Replies: 2
    Last Post: 3rd March 2007, 09:45
  4. QT 4.1 in OSX I have a doubt
    By askot in forum Installation and Deployment
    Replies: 9
    Last Post: 25th February 2006, 06:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.