Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Half-open QTcpSocket
Forum Updated to NodeBB v4.3 + New Features

Half-open QTcpSocket

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 851 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PLuS
    wrote on last edited by
    #1

    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?

    A 1 Reply Last reply
    0
    • P PLuS

      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?

      A Offline
      A Offline
      Abb Per
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved