does (internal) IP exist ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

does (internal) IP exist ?

Post by AUGE_OHR »

hi,

for SQL Server i need IP but what if SQL-Server is Offline :?:
it will "time-out" after a while but it "confuse" User when nothing happens

so i like to "check" it SQL-Server is Online.
i can use PING ... but i search for more "elegant" Solution :idea:
have fun
Jimmy
fugazi
Posts: 23
Joined: Thu Jun 16, 2011 10:58 am

Re: does (internal) IP exist ?

Post by fugazi »

hi,

Try
_ret:=HB_PING(cUrl).

https://hmgforum.com/viewtopic.php?f=24 ... ing#p54129

Regards
Fugazi
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: does (internal) IP exist ?

Post by Claudio Ricardo »

Hi Jimmy
Precisely for that function and so that the program does not freeze while it checks, in another post I asked how to put it in another thread, considering that it is in a Timer every 60 seconds and only report if it returns <> 0.
But since no one answered, I think it can not be done.
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: does (internal) IP exist ?

Post by AUGE_OHR »

hi Claudio,

on Intranet it does respond very quick so i can use that Code as Function
have fun
Jimmy
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: does (internal) IP exist ?

Post by Claudio Ricardo »

Hi Jimmy
Sorry I forgot to say that it is for the internet connecting to a remote hosting and the problem occurs when
it does not establish a connection, it freezes the application for 10 - 20 seconds.
Although what I really want to learn is how to execute an independent function
(which can take time to complete, such as downloading an update file) I want it to do it in the background,
and on return show a MsgInfo notifying that an update is available, while the user continues to do other tasks.
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
Post Reply