Massimo
Massimo

Reputation: 75

How to specify number of packets to ping?

I'm using POE::Component::Client::Ping to ping multiple hosts with this example.

As I understand this sends one request to host. Is it possible to specify number of packets to ping like in ping -c 4 HOST?

Upvotes: 0

Views: 1030

Answers (2)

Rocco Caputo
Rocco Caputo

Reputation: 104

No, POE::Component::Client::Ping doesn't implement repetition logic. It just pings. I wrote it such that control of how it pings is almost entirely in your hands.

Upvotes: 0

mbsingh
mbsingh

Reputation: 489

Yes, it is possible to send a ping with a non-standard payload size. Details here :

https://metacpan.org/pod/POE::Component::Client::Ping#OTHER-RESOURCES

Upvotes: 0

Related Questions