- struct UPing* next; /* next ping in list, usually null */
- int fd; /* socket file descriptor */
- struct sockaddr_in sin; /* socket name (ip addr, port, family ) */
- char count; /* number of pings requested */
- char sent; /* pings sent */
- char received; /* pings received */
- char active; /* ping active flag */
- struct Client* client; /* who requested the pings */
- time_t lastsent; /* when last ping was sent */
- time_t timeout; /* current ping timeout time */
- int ms_min; /* minimum time in milliseconds */
- int ms_ave; /* average time in milliseconds */
- int ms_max; /* maximum time in milliseconds */
- int index; /* index into poll array */
- char name[HOSTLEN + 1]; /* server name to poing */
- char buf[BUFSIZE]; /* buffer to hold ping times */
+ struct UPing* next; /**< next ping in list */
+ int fd; /**< socket file descriptor */
+ struct irc_sockaddr addr; /**< socket name (ip addr, port, family ) */
+ char count; /**< number of pings requested */
+ char sent; /**< pings sent */
+ char received; /**< pings received */
+ char active; /**< ping active flag */
+ struct Client* client; /**< who requested the pings */
+ time_t lastsent; /**< when last ping was sent */
+ int ms_min; /**< minimum time in milliseconds */
+ int ms_ave; /**< average time in milliseconds */
+ int ms_max; /**< maximum time in milliseconds */
+ struct Socket socket; /**< socket structure */
+ struct Timer sender; /**< timer telling when next to send a ping */
+ struct Timer killer; /**< timer to kill us */
+ unsigned int freeable; /**< zero when structure can be free()'d */
+ char name[HOSTLEN + 1]; /**< server name to poing */
+ char buf[BUFSIZE]; /**< buffer to hold ping times */