Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
dnsjit.output.udpcli(3)	   Library Functions Manual    dnsjit.output.udpcli(3)

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

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

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

   Attributes
       timeout
	      A	core.timespec that is used when	producing objects.

   Functions
       Udpcli.new()
	      Create a new Udpcli output.

       Udpcli:timeout(seconds, nanoseconds)
	      Set the timeout when producing objects.

       Udpcli:connect(host, port)
	      Connect to the host and port and return 0	if successful.

       Udpcli:nonblocking(bool)
	      Enable (true) or disable (false) nonblocking mode	and  return  0
	      if successful, if	bool is	not specified then return if nonblock-
	      ing mode is on (true) or off (false).

       Udpcli:receive()
	      Return  the C functions and context for receiving	objects, these
	      objects will be sent.

       Udpcli:produce()
	      Return the C functions and context for producing objects,	 these
	      objects  are  received.  If nonblocking mode is enabled the pro-
	      ducer will return	a payload object with length zero if there was
	      nothing to receive.  If nonblocking mode is  disabled  the  pro-
	      ducer  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.

       Udpcli:packets()
	      Return the number	of "packets" sent, actually the	number of com-
	      pletely sent payloads.

       Udpcli:received()
	      Return  the number of "packets" received,	actually the number of
	      successful calls to recvfrom(2) that returned data.

       Udpcli:errors()
	      Return the number	of errors when sending or receiving.

AUTHORS	and CONTRIBUTORS
       Jerry Lundstrm (DNS-OARC), Tom Kek (CZ.NIC), Petr  paek (ISC)

       Maintained by DNS-OARC

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

BUGS
       For issues and feature requests please use:

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

       For question and	help please use:

	      admin@dns-oarc.net

dnsjit				     1.4.0	       dnsjit.output.udpcli(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=dnsjit.output.udpcli&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help