forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDS Browser?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Wed Oct 09, 2002 7:02 pm    Post subject: Reply with quote

Would a DLL made to check the InetIsOffline API be reliable?
Could be used with Gadget of course also.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2150
Location: A House

PostPosted: Wed Oct 09, 2002 8:10 pm    Post subject: Reply with quote

VDSDLL 2.7
Code:
%A = @net(time,time,[time server here])
%B = @net(time,offset)
If @null(%B)
  REM Not connected to the internet
Else
  REM Connected to the interent
End


Doubt much that this would be cached in a proxy.

Please refer to the VDSDLL 2.7 Help File for more information on the time
function.

-Garrett
Back to top
View user's profile Send private message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Wed Oct 09, 2002 10:46 pm    Post subject: ONLINE STATUS = Feedback on thinking requested! Reply with quote

EDITED: 10/10/2002

Dumped the code below...I concluded it was poo.

NT
============END OF EDIT

vdselm and vdsipp required

PURPOSE = to check for ONLINE status.

feedback requested on code/thinking below!

I would like to know if i'm way off track?

All feedback welcomed!

Thanks,

noveltech
Back to top
View user's profile Send private message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Thu Oct 10, 2002 10:40 pm    Post subject: Reply with quote

How can I get the below script to time out within 5 seconds?

It seems to wait forever if not online.

All feedback welcomed! nt


Code:

runh ping.exe -n 1 www.winzip.com,wait
  %%output = @retcode()
  if @equal(%%output,0)
    info This computer is connected to the Internet
  else
    info This computer is off-line
  end


Last edited by noveltech on Fri Oct 11, 2002 8:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Oct 11, 2002 5:27 pm    Post subject: Reply with quote

Well, don't know what you're making, but if its for example a check-script just like the Forum-checker, just put the code What to do if online after it.

Code:
runh ping.exe -n 1 www.winzip.com,wait
info Now you're connected
warn Do what you want...


Ps. You can see it as a kind of loop with no other code in it...
repeat
until @connected()
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group