?
Solved

Getting the Time of the Server

Posted on 2003-03-31
4
Medium Priority
?
163 Views
Last Modified: 2013-11-13
Hi

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.

regards
Prasanna
0
Comment
Question by:DiGiTaL
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Expert Comment

by:sanjaykattimani
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.
0
 

Author Comment

by:DiGiTaL
ID: 8243898
hi

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.

regards
Prasanna
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 150 total points
ID: 8245320
0
 

Author Comment

by:DiGiTaL
ID: 8245448
thanx a lot
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

770 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