IP Ping

Anything QL Software or Programming Related.
Martin_Head
Aurora
Posts: 847
Joined: Tue Dec 17, 2013 1:17 pm

Re: IP Ping

Post by Martin_Head »

Giorgio Garabello wrote:I have a question: is it not possible that PSERVE when it receives a request, does it want to retrieve system date and time and return them instead of a default string?
I have done a quick patch. If you supply an empty string to the ping server e.g. PSERVE "" It will return the current date and time when pinged. I've only done a quick test, but it seemed to be OK. Is this what you wanted?

Martin

Edit: Just added the source code and updated manuals for version 1.02
Attachments
Manuals.zip
.doc/.rtf/.pdf
(94.22 KiB) Downloaded 127 times
IP_PINGsource102.zip
(5.84 KiB) Downloaded 125 times
ping.zip
Version 1.02
(1.01 KiB) Downloaded 137 times
Last edited by Martin_Head on Tue Jun 06, 2017 10:28 am, edited 1 time in total.


User avatar
Giorgio Garabello
Gold Card
Posts: 277
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, Italy
Contact:

Re: IP Ping

Post by Giorgio Garabello »

Martin_Head wrote:
Giorgio Garabello wrote:I have a question: is it not possible that PSERVE when it receives a request, does it want to retrieve system date and time and return them instead of a default string?
I have done a quick patch. If you supply an empty string to the ping server e.g. PSERVE "" It will return the current date and time when pinged. I've only done a quick test, but it seemed to be OK. Is this what you wanted?

Martin
Yes!
many thanks!


Post Reply