[Qt-interest] QAbstractSocket::waitForReadyRead() is not working

Thiago Macieira thiago.macieira at trolltech.com
Sun May 31 16:17:34 CEST 2009


Patric wrote:
>I found out why it's not working.
>Because my bind method is returning false.
>
>bool result= testSocket.bind(QHostAddress("192.168.0.100"), 161);
>
>But I don't know why it don't want to bind my socket...

Port 161 is privileged. You must run your program as root.

Also, make sure that the address 192.168.0.100 is assigned to your 
computer.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090531/1aefbc62/attachment.bin 


More information about the Qt-interest-old mailing list