GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
dnsjit.output.udpcli(3) FreeBSD Library Functions Manual dnsjit.output.udpcli(3)

dnsjit.output.udpcli - Simple and dumb UDP DNS client


local output = require("dnsjit.output.udpcli").new("127.0.0.1", "53")

Simple and rather dumb DNS client that takes any payload you give it and sends the full payload over UDP.

A core.timespec that is used when producing objects.

Create a new Udpcli output.
Set the timeout when producing objects.
Connect to the host and port and return 0 if successful.
Enable (true) or disable (false) nonblocking mode and return 0 if successful, if bool is not specified then return if nonblocking mode is on (true) or off (false).
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. If nonblocking mode is enabled the producer will return a payload object with length zero if there was nothing to receive. If nonblocking mode is disabled the producer will wait for data and if timed out (see timeout) it will return a payload object with length zero. 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 successful calls to recvfrom(2) that returned data.
Return the number of errors when sending or receiving.

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.4.0 dnsjit

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.