Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Getting the Time of the Server

Posted on 2003-03-31
Medium Priority
Last Modified: 2013-11-13

Can i get an example where i can get the time of the server queried from the Clients machines, this is a distributed application using Web Services, where a user logs in to the Application and performs some work and then logs out. I need to find the time during the client/user  has worked in. So i need the Server time so that i can find the time difference during which the client works.

Question by:DiGiTaL
  • 2

Expert Comment

ID: 8243803
If you have already coded webservices then you just need to add the procedure which accepts the request from the client for Server date time and return it from server.

If you have not done it already, you can use winsock (or other ways too.) and send the request to server to send back the current date time and use the same in your application.

Author Comment

ID: 8243898

I am sorry i forgot to mention it.

The first solution i have already implemented, but since it has resulted in overloading the webserver as the numbers of the calls to the webserver requesting for the server increases in a large manner as the number of the users working in the system as client nodes increases.

Can u be more detailed on the implementation of the Winsock api or which function in winsock is used.

LVL 70

Accepted Solution

Éric Moreau earned 150 total points
ID: 8245320

Author Comment

ID: 8245448
thanx a lot

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question