Lines Matching +full:num +full:- +full:transfer +full:- +full:bits

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
106 /** to pass done transfer to callback function; http file is complete */
107 #define NETEVENT_DONE -4
110 #define NETEVENT_PKT_WRITTEN -5
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 ------- */
274 /** chunked transfer */
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.
616 * @param num: becomes max_tcp_count, the routine allocates that
638 int fd, int num, int idle_timeout, int harden_large_queries,
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.
704 * a tcp-accept point, also its tcp-handler points are deleted.
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.
758 * For TCP handlers that use c->tcp_timeout_msec, this routine adjusts
849 * @return new fd, or -1 on error.
850 * if -1, error message has been printed if necessary, simply drop
862 * @param event: event bits from libevent:
872 * @param event: event bits from libevent:
882 * @param event: event bits from libevent:
892 * @param event: event bits from libevent:
902 * @param event: event bits from libevent:
912 * @param event: event bits from libevent:
959 /** HTTP2 stream ID is an unsigned 31-bit integer */
1128 * @param fd: file descriptor (always -1).
1129 * @param event: event bits from libevent:
1139 * @param event: event bits from libevent:
1149 * @param event: event bits from libevent:
1159 * @param event: event bits from libevent:
1169 * @param event: event bits from libevent: