Results 1 to 2 of 2

Thread: Managing user activity in client-server applications.

  1. #1
    Join Date
    Oct 2013
    Posts
    142
    Thanks
    36
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Managing user activity in client-server applications.

    I know the title is a bit ambigous and I don't know how to formulate it properly so I will just explain it.

    I am working on a project involving client-side and server-side instant messanging application for my bachelor degree, what bugs me is how to manage offline/online clients activity so contacts get signaled properly when someone goes offline / disconnects with regards to server's memory and network optimisation?

    I am thinking of just keeping the clients connected to the server and notify when connectivity is lost, but isn't just using network bandwith wihtout any purpose?
    Should I go for client sending a signal after a period of time to show the server that he is still there? Here again I see bad design that can lead to denial of service when server's bandwith gets suffocated by useless received packages when many clients are in use?
    Should server periodically check for clients to see if they are still there? This will increase server's hardware resources usage.

    Open to suggestions,

    Thank you.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Managing user activity in client-server applications.

    If you want to reliably recognize a disconnected client, then you need to communicate with it.

    Such a "ping" is really not problematic considering traffic and it is only necessary if there is really no other traffic.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    adutzu89 (6th July 2016)

Similar Threads

  1. Replies: 8
    Last Post: 2nd December 2015, 14:52
  2. Replies: 3
    Last Post: 16th August 2015, 11:32
  3. tcp QT server - .Net c# client
    By soniaerm in forum Qt Programming
    Replies: 0
    Last Post: 21st April 2010, 22:15
  4. Client Server
    By electronicboy in forum General Programming
    Replies: 3
    Last Post: 29th October 2009, 10:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.