comparison libfdproto/messages.c @ 894:43fb27a9037f

Intrumented socket reception to store the timestamp along the received buffer
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 29 Nov 2012 22:51:49 +0100
parents 8187364e39ea
children fbf77629cb7b
comparison
equal deleted inserted replaced
893:8187364e39ea 894:43fb27a9037f
125 void * data; 125 void * data;
126 struct timespec timeout; 126 struct timespec timeout;
127 } msg_cb; /* Callback to be called when an answer is received, if not NULL */ 127 } msg_cb; /* Callback to be called when an answer is received, if not NULL */
128 DiamId_t msg_src_id; /* Diameter Id of the peer this message was received from. This string is malloc'd and must be freed */ 128 DiamId_t msg_src_id; /* Diameter Id of the peer this message was received from. This string is malloc'd and must be freed */
129 size_t msg_src_id_len; /* cached length of this string */ 129 size_t msg_src_id_len; /* cached length of this string */
130 struct timespec msg_ts; /* Timestamp associated with the message */
131
130 }; 132 };
131 133
132 /* Macro to compute the message header size */ 134 /* Macro to compute the message header size */
133 #define GETMSGHDRSZ() 20 135 #define GETMSGHDRSZ() 20
134 136
"Welcome to our mercurial repository"