Re: How detect internet connection?

new topic     » goto parent     » topic index » view thread      » older message » newer message
sergelli said...

The solution using "ping" sounds good. But what is the function Euphoria to use this resource?

integer ping_retcode = system_exec("/bin/ping -c 1 -w 1 google.com", 2) 
if ping_retcode = 0 then 
   -- internet connection good 
else 
   -- internet connection possibly down 
end if 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu