diff options
Diffstat (limited to 'contrib/librdns/util.h')
-rw-r--r-- | contrib/librdns/util.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/contrib/librdns/util.h b/contrib/librdns/util.h index eea818dee..70ad053a0 100644 --- a/contrib/librdns/util.h +++ b/contrib/librdns/util.h @@ -51,13 +51,25 @@ uint16_t rdns_permutor_generate_id (void); void rdns_ioc_free (struct rdns_io_channel *ioc); /** - * C + * Creates a new IO channel */ struct rdns_io_channel * rdns_ioc_new (struct rdns_server *srv, struct rdns_resolver *resolver, bool is_tcp); /** + * Resets inactive/errored TCP chain as recommended by RFC + * @param ioc + */ +void rdns_ioc_tcp_reset (struct rdns_io_channel *ioc); + +/** + * Connect TCP IO channel to a server + * @param ioc + */ +bool rdns_ioc_tcp_connect (struct rdns_io_channel *ioc); + +/** * Free request * @param req */ |