void ext_dns_session_set_on_message ( extDnsSession session,
extDnsOnMessageReceived  on_dns_message,
axlPointer  data 

Allows to configure the onMessage handler, the callback that is called every time a new message is received over the provided session.

Note this handler is only called when a well-formed DNS message is received. Otherwise, badrequest is considered, optionally notified through ext_dns_session_set_on_badrequest, and finally discarded.

sessionThe session that is configured to received messages on the provided handler.
on_dns_messageThe handler where the message will be notified.
dataA pointer to user defined data that will be passed into the handler.

Note: only one handler can be configured at the same time for a single session.

Referenced by ext_dns_message_query_int().