Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. I have doubt how to do echo from server when multiple clients connect for particular client reply?
Forum Updated to NodeBB v4.3 + New Features

I have doubt how to do echo from server when multiple clients connect for particular client reply?

Scheduled Pinned Locked Moved Unsolved Brainstorm
2 Posts 2 Posters 1.2k 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.
  • B Offline
    B Offline
    bhargav
    wrote on last edited by
    #1

    My code is working fine ,multi client with single server.
    from client1 is sending "Test1" and server has to echo to that particular client "reply1".
    from client2 is sending "Test2" and server has to echo to that particular client "reply2".

    so ,here I am not getting the logic behind the server code how to get echo for particular client with reply1 ,reply2 ..........reply n.

    In server code without multithreading i am using .
    I have used QList for tcpsocket count and i am not getting how to give reply to particular client.

    Please give suggestions to resolve this task.

    aha_1980A 1 Reply Last reply
    0
    • B bhargav

      My code is working fine ,multi client with single server.
      from client1 is sending "Test1" and server has to echo to that particular client "reply1".
      from client2 is sending "Test2" and server has to echo to that particular client "reply2".

      so ,here I am not getting the logic behind the server code how to get echo for particular client with reply1 ,reply2 ..........reply n.

      In server code without multithreading i am using .
      I have used QList for tcpsocket count and i am not getting how to give reply to particular client.

      Please give suggestions to resolve this task.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @bhargav

      isn't that the same question as https://forum.qt.io/topic/93942/i-have-doubt-on-tcp-ip-multi-client-with-single-server ?

      please don't cross-post!

      Qt has to stay free or it will die.

      1 Reply Last reply
      1

      • Login

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