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. Help me about QTcpServer
Qt 6.11 is out! See what's new in the release blog

Help me about QTcpServer

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 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.
  • H Offline
    H Offline
    htn_vn
    wrote on last edited by
    #1

    I am newbie in qt creator but I have to do more than one following requirements.

    I have three clients and a server
    I assume all three clients are connected to the server.
    now, if a client sends the packet to the server, the server will send that packet to all three workstations,

    use QTcpServer solve this problem like?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      Yes, QTcpServer helps you to solve this problem. However, it does not solve the problem per se. QTcpServer is a mechanism to establish the communication through QTcpSockets which are handling on both the side the communication.

      Please check out the fortune "client":http://qt-project.org/doc/qt-4.8/network-fortuneclient.html and "server":http://qt-project.org/doc/qt-4.8/network-fortuneserver.html example. This should give you some ideas of how to implement.

      Vote the answer(s) that helped you to solve your issue(s)

      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