#define trsocket.h
/*
* Ping info Structure where statistics on the PING connection are kept.
*/
typedef struct tsPingInfo
{
/* Peer socket address */
struct sockaddr_storage pgiPeerSockAddr;
/* Last round trip time computed */
ttUser32Bit pgiLastRtt;
/* maximum round trip time */
ttUser32Bit pgiMaxRtt;
/* minimum round trip time */
ttUser32Bit pgiMinRtt;
/* average round trip time */
ttUser32Bit pgiAvgRtt;
/* sum of all round trip time received so far (to compute average) */
ttUser32Bit pgiSumRtt;
/* number of ping transmitted packets */
ttUser32Bit pgiTransmitted;
/*
* number of received echo replies packets (not including duplicated
* packets)
*/
ttUser32Bit pgiReceived;
/* Number of duplicated ping echo replies packets */
ttUser32Bit pgiDuplicated;
/* Send Error code if any that occured */
int pgiSendErrorCode;
/* Recv CB Error code if any that occured */
int pgiRecvErrorCode;
} ttPingInfo;
/* Pointer to a ping info structure */
typedef ttPingInfo TM_FAR * ttPingInfoPtr;