liboping
liboping copied to clipboard
Ability to get last ping sent time (ph->timer)
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!
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