4DIC: Does NET_Ping work?

Koen Van Hooreweghe (7/8/08 11:44AM)
Pierre Leblanc (7/8/08 1:06PM)
Koen Van Hooreweghe (7/8/08 1:40PM)


Koen Van Hooreweghe (7/8/08 11:44 AM)

Hi,

4D v 11.2, OSX 10.5.4

Just created a new database and added the 4D Internet Commands  

plugin. Created a new method which reads the IP address, gives the  

user the opportunity to provide another address, and then pings to  

that address. I always get an error 10064 (timeout). Doet Net_Ping  

and the whole 4DIC plugin actually work in v11?

C_TEXT($ip_Address;$subnet)

C_LONGINT($alive;$err)

IT_MyTCPAddr ($ip_Address;$subnet)

$ip_Address:=Request("Ping to";$ip_Address)

if(OK=1)

$err:=NET_Ping ($ip_Address;"";$alive;5)

If ($err#0)

ALERT("Error "+String($err)+" - "+IT_ErrorText ($err))

End if

End if

--------------------

Compass bvba

Koen Van Hooreweghe

Kloosterstraat 65

9910 Knesselare

Belgium

bvbaCompass@...

Pierre Leblanc (7/8/08 1:06 PM)

Koen Van Hooreweghe wrote:

Doet Net_Ping and the whole 4DIC plugin actually work in v11?

It does for me!

             $err:=NET_Ping
($ip_Address;"";$alive;5)

But instead I use the $alive parameter to test the result.

For some reason I cannot recall, I decided to use a pattern, as in

$err:=NET_Ping ($ip_Address;"Test Pattern";$alive;5)

            if ($alive#0)

                  `Server responded

            end if

Pierre Leblanc.

Koen Van Hooreweghe (7/8/08 1:40 PM)

Weird, NET_Ping works fine on my PowerBook G4 (OSX 10.5.3), but not  

on my Intel iMac (10.5.4). I'm installing 10.5.4 on the PB to see if  

there is a difference.

Thanks.

Koen

Op 8-jul-08, om 13:06 heeft Pierre Leblanc het volgende geschreven:

            $err:=NET_Ping
($ip_Address;"";$alive;5)

But instead I use the $alive parameter to test the result.

For some reason I cannot recall, I decided to use a pattern, as in  

$err:=NET_Ping ($ip_Address;"Test Pattern";$alive;5)

--------------------

Compass bvba

Koen Van Hooreweghe

Kloosterstraat 65

9910 Knesselare

Belgium

bvbaCompass@...

Reply to this message

Summary created 7/8/08 at 11:14AM by Intellex Corporation

Comments welcome at: feedback@intellexcorp.com