comparison include/freeDiameter/libfdcore.h @ 1299:035f489b845b

Added a new hook HOOK_MESSAGE_SENDING
author Sebastien Decugis <sdecugis@freediameter.net>
date Sat, 04 Jul 2015 23:06:37 +0800
parents cec3e9b579e1
children 50fb308e84f7
comparison
equal deleted inserted replaced
1298:0f215b0dda5e 1299:035f489b845b
962 - {peer} is NULL 962 - {peer} is NULL
963 - {other} is NULL 963 - {other} is NULL
964 - {permsgdata} points to a new empty structure allocated for this request (cf. fd_hook_data_hdl) 964 - {permsgdata} points to a new empty structure allocated for this request (cf. fd_hook_data_hdl)
965 */ 965 */
966 966
967 HOOK_MESSAGE_SENDING,
968 /* Hook called when a message is about to be sent to a peer. The message pointer cannot be modified here, but the content of the message
969 could still be changed (for example add or remove some AVP. This is the last chance.
970 - {msg} points to the message. Some objects may not have been dictionary resolved. If you
971 try to call fd_msg_parse_dict, it will slow down the operation of the instance.
972 - {peer} is the one the message is being sent to.
973 - {other} is NULL.
974 - {permsgdata} points to existing structure if any, or a new structure otherwise.
975 */
976
967 HOOK_MESSAGE_SENT, 977 HOOK_MESSAGE_SENT,
968 /* Hook called when a message has been sent to a peer. The message might be freed as soon as the hook function returns, 978 /* Hook called when a message has been sent to a peer. The message might be freed as soon as the hook function returns,
969 so it is not safe to store the pointer for asynchronous processing. 979 so it is not safe to store the pointer for asynchronous processing.
970 - {msg} points to the sent message. Again, the objects may not have been dictionary resolved. If you 980 - {msg} points to the sent message. Again, the objects may not have been dictionary resolved. If you
971 try to call fd_msg_parse_dict, it will slow down the operation of a relay agent. 981 try to call fd_msg_parse_dict, it will slow down the operation of a relay agent.
"Welcome to our mercurial repository"