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. QTcpSocket usage
Qt 6.11 is out! See what's new in the release blog

QTcpSocket usage

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 274 Views
  • 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.
  • C Offline
    C Offline
    coderKnight
    wrote on last edited by
    #1

    I am using QTcpSoket as a client to communicate with server. I provide a lsot for the signal "error" to indicate wether I got an error when connect to the server, it takes to much time to recevived the error signal. Is it avaliable to change timeout?

    JonBJ 1 Reply Last reply
    0
    • C coderKnight

      I am using QTcpSoket as a client to communicate with server. I provide a lsot for the signal "error" to indicate wether I got an error when connect to the server, it takes to much time to recevived the error signal. Is it avaliable to change timeout?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @coderKnight
      If you are talking about a timeout during connectToHost() have a detailed read through https://forum.qt.io/topic/97149/can-i-set-the-timeout-value-on-qabstractsocket-connecttohost .

      1 Reply Last reply
      2

      • Login

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