How to ping a host ip?

45 views
Skip to first unread message

Trieu Tran Quoc

unread,
Jun 21, 2016, 6:07:46 AM6/21/16
to Haxe
Hi all,
Is there any way to ping a host?

Thanks.

Domagoj Štrekelj

unread,
Jun 22, 2016, 2:11:37 AM6/22/16
to Haxe
Hello,

You could use Sys.command() or sys.io.Process to call the ping utility like you would from the command line.

The Process API in particular is a good choice if you want to interact with the process as it gives you an input, output, and error handle to communicate through.

You can find two examples here.

I hope that helps!


Domagoj
Reply all
Reply to author
Forward
0 new messages