DOKK / manpages / debian 12 / dnsjit / dnsjit.output.tlscli.3.en
dnsjit.output.tlscli(3) Library Functions Manual dnsjit.output.tlscli(3)

dnsjit.output.tlscli - Simple TLS client


local output = require("dnsjit.output.tlscli").new("127.0.0.1", "853")

Simple TLS client that attempts to do a TLS handshake (without certificate verification). It behaves the same way as tcpcli, except all the data is sent over the encrypted channel.

A core.timespec that is used when producing objects.

Create a new Tlscli output.
Set the timeout when producing objects.
Connect to the host and port , perform a TLS handshake and return 0 if successful.
Return the C functions and context for receiving objects, these objects will be sent.
Return the C functions and context for producing objects, these objects are received. The producer will wait for data and if timed out (see timeout) it will return a payload object with length zero. If a timeout happens during during the first stage, getting the length, it will fail and return nil. Additional calls will continue retrieving the payload. The producer returns nil on error.
Return the number of "packets" sent, actually the number of completely sent payloads.
Return the number of "packets" received, actually the number of completely received DNS messages.
Return the number of errors when sending.

Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

Maintained by DNS-OARC

https://www.dns-oarc.net/

For issues and feature requests please use:

https://github.com/DNS-OARC/dnsjit/issues

For question and help please use:

admin@dns-oarc.net
1.2.3 dnsjit