Project

General

Profile

Feature #3541

Add new identifier $internet

Added by westor (GR) 5 months ago. Updated 5 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/06/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Hello,

This is one of the most wanted identifier in mSL that in the most cases is custom build via sockets/com objects, it would be nice to see that AdiIRC has an core included identifier that the coder can determine if there is an internet connection established or not, it would really be very helpful to see that added, our custom checking internet connection identifiers/methods are having a 3-6 seconds delay and that delay cost very much in our projects, it really will be helpfull to check for internet before starting calling anything and with that identifier will really be able to do because now there isn't any fast way to do that.

Specifications:

$internet - Returns current bandwidth connection with $true if it is established or $false if it's not, on selected network adapter.

Examples:

ON *:DIALOG:test:sclick:1: {
  if ($internet) { echo 4 -a You must be connected first to internet! | return }
  download adiirc https://adiirc.com/setup64.exe setup.exe
}
alias server {
  if (!$internet) { echo 4 You must be connected first to internet! | return }
  !server $1-
}

alias url {
  if (!$internet) { echo 4 You must be connected first to internet! | return }
  !url $1-
}

- Thanks!

History

#1

Updated by Per Amundsen 5 months ago

  • Status changed from New to Rejected

The only way to check for a connection, is to start one, due to how connections works, there will always be delays, specially if there is problems, don't think locking up the UI while adiirc performs a lookup to google should be built-in.

Also available in: Atom PDF