Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Half-open QTcpSocket



  • I'm working with QTcpServer and QTcpSocket for making a server
    on the other side there is a client written in C, which calls shutdown(socket, SHUT_WR) after writing request, so it only expects data from server
    but when client calls shutdown function, I get RemoteHostClosedError and cannot write anything to Client (although isWritable returns true)
    is there any workaround?



  • @PLuS said in Half-open QTcpSocket:

    I'm working with QTcpServer and QTcpSocket for making a server
    on the other side there is a client written in C, which calls shutdown(socket, SHUT_WR) after writing request, so it only expects data from server
    but when client calls shutdown function, I get RemoteHostClosedError and cannot write anything to Client (although isWritable returns true)
    is there any workaround?

    I am also in the same situation. I'll share solution soon.


Log in to reply