[Interest] QLocalSocket bug?
Igor Mironchik
igor.mironchik at gmail.com
Wed Jan 6 09:19:41 CET 2016
Hi,
On 06.01.2016 11:07, Etienne Sandré-Chardonnal wrote:
> This was not really a complain but just a comment, since both classes
> have nearly the same interface they could derive from a common one.
>
> I could fix the canReadLine()==true issue by adding an isReadable()
> test, but the socket not disconnecting from server side is more a
> problem. The QLocalSocket implementation under windows seems buggy, I
> will likely switch back to QTcpSocket, unfortunately.
Does your socket, that that doesn't receive didconnected() signal,
initiate some read/write operations?
If you will try to read something from the socket may be then
disconnected() will be emited?!
>
>
> Thanks,
>
> Etienne
>
> 2016-01-06 4:28 GMT+01:00 <jhihn at gmx.com <mailto:jhihn at gmx.com>>:
>
> -----Original message-----
> Sent: Wednesday, 06 January 2016 at 01:51:46
> From: "Thiago Macieira" <thiago.macieira at intel.com
> <mailto:thiago.macieira at intel.com>>
> To: interest at qt-project.org <mailto:interest at qt-project.org>
> Subject: Re: [Interest] QLocalSocket bug?
> On Tuesday 05 January 2016 18:49:44 Jason H wrote:
> > > It seems that win32 implementation of QLocalSocket is not so
> good, there
> > > are many issues which prevent plain replacement of
> QTcpServer/Socket by
> > > QLocalServer/Socket
> > Why can't you just connect through loopback interface? (127.0.0.1)
>
> Because TCP is a lot more complex and expensive than AF_UNIX streaming
> sockets.
> --
>
> True, but he was also previously complaining that QLocalSocket is
> not derived from QAbstractSocket. It seemed reasonable. The
> various local socket implementations aren't as consistently cross
> platform as one would hope.
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org <mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160106/f838b1eb/attachment.html>
More information about the Interest
mailing list