i'm writing a program to use a system call to ping a server every once in a while to see if it's alive... i need to know which time.h functions and how to use them to put a few minutes in between each ping...
i'm writing a program to use a system call to ping a server every once in a while to see if it's alive... i need to know which time.h functions and how to use them to put a few minutes in between each ping...
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
look into Sleep() in windows.h
http://cboard.cprogramming.com/showt...ighlight=sleep
http://cboard.cprogramming.com/searc...der=descending
But you can't use Sleep() if you want your program to do anything else in the meantime....
Thor's self help tip:
Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.
OS: Windows XP
Compiler: MSVC
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
no, nothing going on in between pings... thanks for the help... jeebus... it was right there in the FAQ...Originally posted by HybridM
But you can't use Sleep() if you want your program to do anything else in the meantime....
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT