dns_dispatchevent Struct Reference

This event is sent to a task when a response comes in. No part of this structure should ever be modified by the caller, other than parts of the buffer. The holy parts of the buffer are the base and size of the buffer. All other parts of the buffer may be used. On event delivery the used region contains the packet. More...

#include <dispatch.h>


Public Member Functions

 ISC_EVENT_COMMON (dns_dispatchevent_t)
 standard event common

Data Fields

isc_result_t result
 result code
isc_int32_t id
 message id
isc_sockaddr_t addr
 address recv'd from
struct in6_pktinfo pktinfo
 reply info for v6
isc_buffer_t buffer
 data buffer
isc_uint32_t attributes
 mirrored from socket.h


Detailed Description

This event is sent to a task when a response comes in. No part of this structure should ever be modified by the caller, other than parts of the buffer. The holy parts of the buffer are the base and size of the buffer. All other parts of the buffer may be used. On event delivery the used region contains the packet.

"id" is the received message id,

"addr" is the host that sent it to us,

"buffer" holds state on the received data.

The "free" routine for this event will clean up itself as well as any buffer space allocated from common pools.

Definition at line 80 of file dispatch.h.


Member Function Documentation

dns_dispatchevent::ISC_EVENT_COMMON ( dns_dispatchevent_t   ) 

standard event common


Field Documentation

isc_result_t dns_dispatchevent::result

result code

Definition at line 82 of file dispatch.h.

Referenced by dns_dispatch_addresponse3(), do_cancel(), req_response(), resquery_response(), tcp_recv(), and udp_recv().

isc_int32_t dns_dispatchevent::id

message id

Definition at line 83 of file dispatch.h.

Referenced by dns_dispatch_addresponse3(), tcp_recv(), and udp_recv().

isc_sockaddr_t dns_dispatchevent::addr

address recv'd from

Definition at line 84 of file dispatch.h.

Referenced by tcp_recv(), and udp_recv().

struct in6_pktinfo dns_dispatchevent::pktinfo [read]

reply info for v6

Definition at line 85 of file dispatch.h.

Referenced by udp_recv().

isc_buffer_t dns_dispatchevent::buffer

data buffer

Definition at line 86 of file dispatch.h.

Referenced by dns_dispatch_addresponse3(), dns_dispatch_removeresponse(), do_cancel(), req_response(), resquery_response(), tcp_recv(), and udp_recv().

isc_uint32_t dns_dispatchevent::attributes

mirrored from socket.h

Definition at line 87 of file dispatch.h.

Referenced by udp_recv().


The documentation for this struct was generated from the following file:
Generated on Tue Apr 28 17:41:20 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha