[Qt-interest] QScoketNotifer sending both read and excpetions

Thiago Macieira thiago at kde.org
Thu Feb 25 22:23:10 CET 2010


Em Quinta-feira 25. Fevereiro 2010, às 20.25.51, శ్రీకాంత్ కావూరి escreveu:
> Hi Thiago ,
> 
> Thanks for the reply..
> 
> >>>> On Unix, the Read notifier
> 
> is triggered when errors are detected
> 
> So , how do we differentiate between an incoming data event  to an  errored
> state of the socket we are listening to ?
> 
> we need to re-inititate or reset the port if the socket is in error state.

When you read, you'll get a -1 and you can check the error state then.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100225/aec04013/attachment.bin 


More information about the Qt-interest-old mailing list