initial commit
This commit is contained in:
31
fast_ping.h
Executable file
31
fast_ping.h
Executable file
@@ -0,0 +1,31 @@
|
||||
#ifndef FAST_PING_H
|
||||
#define FAST_PING_H
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifdef __cpluscplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
FAST_PING_ICMP = 1,
|
||||
FAST_PING_TCP,
|
||||
FAST_PING_UDP
|
||||
} FAST_PING_TYPE;
|
||||
|
||||
typedef void (*fast_ping_result)(const char *host, int seqno, struct timeval *tv, void *userptr);
|
||||
int fast_ping_result_callback(fast_ping_result result);
|
||||
|
||||
int fast_ping_start(const char *host, int timeout, void *userptr);
|
||||
|
||||
int fast_ping_stop(const char *host);
|
||||
|
||||
int fast_ping_init();
|
||||
|
||||
int fast_ping_exit();
|
||||
|
||||
#ifdef __cpluscplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !FAST_PING_H
|
||||
Reference in New Issue
Block a user