send ICMP ping packet

I’m learning Elixir and as a pet project I’d like to ping (ICMP) several IP (V4) addresses.
¿can you point me on the right direction to do this?

Thanks in advance :wink:

The BEAM hasn’t something like that built in, but perhaps you can use :gen_icmp.

It requires raw sockets though.

¿Can I use RAW sockets in elixir? ICMP protocol is very simple, I could try to write it.

You can’t directly, but there is :procket, which gives you access to raw sockets through NIFs.