liboping icon indicating copy to clipboard operation
liboping copied to clipboard

Ability to get last ping sent time (ph->timer)

Open foxx opened this issue 9 years ago • 1 comments

Because pinghost_t is not inside any header file, you cannot query ph->timer directly as you'll get an "incomplete type" error. Duplicating the struct on user side is too dirty, perhaps you could add another info type, e.g. PING_INFO_TIMESTAMP?

PS) Fantastic work with liboping btw, it's been really useful for me!

foxx avatar Oct 16 '16 14:10 foxx

Hi @foxx, sorry for the late reply.

What are you trying to accomplish? (pinghost_t).timer is reset frequently and simply exposing it as-is will not be very helpful because its semantics aren't clear.

Best regards, —octo

octo avatar May 09 '17 09:05 octo