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. read data from TCP/IP
Forum Updated to NodeBB v4.3 + New Features

read data from TCP/IP

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 221 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.
  • S Offline
    S Offline
    Saeed_Nowroozi
    wrote on last edited by
    #1

    Hi all,
    I read code a chat program, in code define a variable "qint64 bytes_recived".
    in code if sizeof(qint64) * 2 was smaller bytes_recived, read data from tcp/ip, but I can not understand this segment of code. No one has any comments on this code?

    ddd.PNG

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      This is the old way (pre-2016).
      Have a look at this article with an example and explanation of what it does

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2
      • S Offline
        S Offline
        Saeed_Nowroozi
        wrote on last edited by
        #3

        Thanks @VRonin

        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