Forum > General

is there an internet connection?

<< < (2/10) > >>

JanRoza:
What an answer!
If you don’t want to understand then why program at all?

Bogen85:

--- Quote from: KodeZwerg on February 03, 2023, 03:27:21 pm ---Pascal ain't a script language where you just copy/paste.

--- End quote ---

 :D Haha!

Even in scripting languages blind copypasta without understanding what the copypasta is and does is a recipe for disaster! :D

Bogen85:

--- Quote from: Nicole on February 03, 2023, 01:44:47 pm ---The only thing I need, is a result only true, if there is a connection.

--- End quote ---

"Is there a connection" is a very broad and nebulous term.

My computer could have access to thousands of computer and websites, and not one of those be on the Internet.

A connection to what? Yes, I get it, the Internet...

But it is not simple check. Yes, high level tools do give you a simple status, because they are checking the ability to access to access some specific resource (or at least one of multiple resources) that can only be found on the Internet.

Hence what is discussed in the given topic/thread: https://forum.lazarus.freepascal.org/index.php/topic,43819.0.html

Bogen85:

--- Quote from: Nicole on February 03, 2023, 01:44:47 pm ---Do you think, you can just copy me the correct line form there?
The only thing I need, is a result only true, if there is a connection.

--- End quote ---

You might think it is simple, it is not.
Hence you need to understand it.

Checking for "an Internet connection" is complex. So you need to have some understanding of what is being checked for.

Curt Carpenter:
I think you just want to see if you can contact other computers that are connected to the internet.  If that's correct and you're using Windows, the easiest way to do this is to "ping" another computer that you know is in fact connected.  A way to do that is illustrated in this thread:

https://forum.lazarus.freepascal.org/index.php?topic=39409.0

(Hope it helps.  You can make a career out of learning the ins and outs of the internet, so cut-and-paste is OK, IMHO, if you don't want to  :) )

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version