Results 1 to 2 of 2

Thread: synchronization time in client/server aplication

  1. #1
    Join Date
    Mar 2011
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default synchronization time in client/server aplication

    hi,

    I have a problem with time synchonization. I have two clients and one server. It's stopwatch. The first client starts the time so sends message START throught server to the second client. The second client stopes the time then. But the journey of message START last some time(maybe some miliseconds), so it makes delay and I need the exact time. How to do that? Do you have any Idea?
    thx

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: synchronization time in client/server aplication

    Have the timer run on the server, so that the clients start and stop the same timer on the server.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. TCP Client / Server
    By bmarsden in forum Qt Programming
    Replies: 4
    Last Post: 8th October 2010, 11:18
  2. Replies: 7
    Last Post: 10th May 2010, 12:26
  3. tcp QT server - .Net c# client
    By soniaerm in forum Qt Programming
    Replies: 0
    Last Post: 21st April 2010, 23:15
  4. Client Server
    By electronicboy in forum General Programming
    Replies: 3
    Last Post: 29th October 2009, 11:10
  5. client-server how?
    By nongentesimus in forum Newbie
    Replies: 6
    Last Post: 28th November 2006, 10:25

Tags for this Thread

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.