On Monday 01 September 2014 09:37:12 Igor Mironchik wrote:
> Hi guys,
> 
> I was trying to connect Qt TCP Socket with Boost Asio TCP socket.
> 
> And what I found. Qt writes simple 12 bytes message to the Boost and in most
> situations Boost reads garbage. Even more Boost can crash.
> 
> And my question is: who is so bad guy, Boost or Qt?

Anything that crashes is at fault for certain.

> You can find simple implementation of the problem in the attachment. Thanks.

Please don't derive from QTcpSocket. That's bad practice.

Anyway, please use a traffic sniffer and tell us whether those 12 bytes are 
written and whether any garbage is sent.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to