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 <jh...@gmx.com <mailto:jh...@gmx.com>>:

    -----Original message-----
    Sent: Wednesday, 06 January 2016 at 01:51:46
    From: "Thiago Macieira" <thiago.macie...@intel.com
    <mailto:thiago.macie...@intel.com>>
    To: interest@qt-project.org <mailto:interest@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@qt-project.org <mailto:Interest@qt-project.org>
    http://lists.qt-project.org/mailman/listinfo/interest




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

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

Reply via email to