Lines Matching refs:DnsStream
10 typedef struct DnsStream DnsStream; typedef
48 struct DnsStream { struct
83 int (*on_packet)(DnsStream *s, DnsPacket *p); argument
84 int (*complete)(DnsStream *s, int error); argument
95 LIST_FIELDS(DnsStream, streams); argument
100 DnsStream **ret,
105 int (on_packet)(DnsStream*, DnsPacket*),
106 int (complete)(DnsStream*, int), /* optional */
109 int dns_stream_connect_tls(DnsStream *s, void *tls_session);
111 DnsStream *dns_stream_unref(DnsStream *s);
112 DnsStream *dns_stream_ref(DnsStream *s);
114 DEFINE_TRIVIAL_CLEANUP_FUNC(DnsStream*, dns_stream_unref);
116 int dns_stream_write_packet(DnsStream *s, DnsPacket *p);
117 ssize_t dns_stream_writev(DnsStream *s, const struct iovec *iov, size_t iovcnt, int flags);
119 static inline bool DNS_STREAM_QUEUED(DnsStream *s) { in DNS_STREAM_QUEUED()
128 void dns_stream_detach(DnsStream *s);