Closed und3f closed 10 years ago
it might be good to have on_prepare() method
my $ping = AnyEvent::Ping->new(
on_prepare => sub {
my $socket = shift;
....
});
Thank you
I've added this feature in 7b9b049b7d324d716f4ca48b96ea1cc3614ed99c
I'm using AnyEvent :: Ping to test the connection from different interfaces using a work-aroundto change bind address (see the code at bottom).
I had to refer to the private attribute "_socket."
In a future version, you can expose a method to refer to the socket, or a better method to change the address to bind?
Best regards and thanks for your code. Guido Brugnara
Example: