Lines Matching +full:local +full:- +full:timer +full:- +full:stop
2 * util/netevent.h - event notification
42 * o UDP socket - perthread buffer.
43 * o TCP-accept socket - array of TCP-sockets, socketcount.
44 * o TCP socket - own buffer, parent-TCPaccept, read/write state,
48 * o frontside - aimed towards our clients, queries come in, answers back.
49 * o behind - aimed towards internet, to the authoritative DNS servers.
52 * o comm_base - for thread safety of the comm points, one per thread.
53 * o comm_point - udp and tcp networking, with callbacks.
54 * o comm_timer - a timeout with callback.
55 * o comm_signal - callbacks when signal is caught.
56 * o comm_reply - holds reply info during networking callback.
101 #define NETEVENT_CLOSED -1
103 #define NETEVENT_TIMEOUT -2
105 #define NETEVENT_CAPSFAIL -3
107 #define NETEVENT_DONE -4
110 #define NETEVENT_PKT_WRITTEN -5
125 /** callback to stop listening on accept sockets,
220 /* -------- TCP Handler -------- */
230 /* -------- TCP Accept -------- */
231 /** the number of TCP handlers for this tcp-accept socket */
233 /** current number of tcp handler in-use for this accept socket */
235 /** malloced array of tcp handlers for a tcp-accept,
242 /* -------- SSL TCP DNS ------- */
259 /* -------- HTTP ------- */
268 /* -------- HTTP/1.1 ------- */
280 /* -------- HTTP/2 ------- */
292 /* -------- DoQ ------- */
298 /* -------- dnstap ------- */
302 /** is this a UDP, TCP-accept or TCP socket. */
304 /** UDP socket - handle datagrams. */
306 /** TCP accept socket - only creates handlers if readable. */
308 /** TCP handler socket - handle byteperbyte readwrite. */
314 /** AF_UNIX socket - for internal commands. */
316 /** raw - not DNS format - for pipe readers and writers */
319 /** variable with type of socket, UDP,TCP-accept,TCP,pipe */
322 /* -------- PROXYv2 ------- */
335 /* ---------- Behaviour ----------- */
427 callback is called with error set to NETEVENT_CLOSED=-1.
429 NETEVENT_TIMEOUT=-2.
646 * Create an outgoing TCP commpoint. No file descriptor is opened, left at -1.
657 * Create an outgoing HTTP commpoint. No file descriptor is opened, left at -1.
671 * Create commpoint to listen to a local domain file descriptor.
684 * Create commpoint to listen to a local domain pipe descriptor.
704 * a tcp-accept point, also its tcp-handler points are deleted.
735 * Stop listening for input on the commpoint. No callbacks will happen.
743 * @param newfd: new fd, or -1 to leave fd be.
744 * @param msec: timeout in milliseconds, or -1 for no (change to the) timeout.
750 * Stop listening and start listening again for reading or writing.
758 * For TCP handlers that use c->tcp_timeout_msec, this routine adjusts
777 * create timer. Not active upon creation.
781 * @return: the new timer or NULL on error.
787 * disable timer. Stops callbacks from happening.
788 * @param timer: to disable.
790 void comm_timer_disable(struct comm_timer* timer);
793 * reset timevalue for timer.
794 * @param timer: timer to (re)set.
795 * @param tv: when the timer should activate. if NULL timer is disabled.
797 void comm_timer_set(struct comm_timer* timer, struct timeval* tv);
800 * delete timer.
801 * @param timer: to delete.
803 void comm_timer_delete(struct comm_timer* timer);
807 * @param timer: the timer to examine.
810 int comm_timer_is_set(struct comm_timer* timer);
813 * Get size of memory used by comm timer.
814 * @param timer: the timer to examine.
817 size_t comm_timer_get_mem(struct comm_timer* timer);
849 * @return new fd, or -1 on error.
850 * if -1, error message has been printed if necessary, simply drop
959 /** HTTP2 stream ID is an unsigned 31-bit integer */
1089 /** timer for this worker on this comm_point to wait on. */
1090 struct comm_timer* timer; member
1091 /** the timer that is marked by the doq_socket as waited on. */
1102 * DoQ packet address information. From pktinfo, stores local and remote
1106 /** the remote addr, and local addr */
1122 /** doq timer callback function. */
1127 * handle libevent callback for timer comm.
1128 * @param fd: file descriptor (always -1).