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. Simple client/server example ?
Forum Updated to NodeBB v4.3 + New Features

Simple client/server example ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 1.1k 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.
  • nicholas_yueN Offline
    nicholas_yueN Offline
    nicholas_yue
    wrote on last edited by
    #1

    Hi,

    I am new to network programming in Qt

    I am hoping to write a console client and server application. The client send QByteArray and the server receives and process the QByteArray. The client and server are separate application and may reside on different computer.

    Which examples from here would be a good starting point ?

    https://doc.qt.io/qt-5/examples-network.html

    Cheers

    jsulmJ 1 Reply Last reply
    0
    • nicholas_yueN nicholas_yue

      Hi,

      I am new to network programming in Qt

      I am hoping to write a console client and server application. The client send QByteArray and the server receives and process the QByteArray. The client and server are separate application and may reside on different computer.

      Which examples from here would be a good starting point ?

      https://doc.qt.io/qt-5/examples-network.html

      Cheers

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @nicholas_yue The simplest one is https://doc.qt.io/qt-5/qtnetwork-loopback-example.html
      It has GUI and client/server in one app, but this isn't an issue: remove the UI stuff and separate client and server code.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        My experience is that examples included in Qt are misleading for people just learning how it works. I'd suggest you use this example on the wiki instead as first step

        "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
        1
        • Kent-DorfmanK Offline
          Kent-DorfmanK Offline
          Kent-Dorfman
          wrote on last edited by
          #4
          This post is deleted!
          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