Commit graph

23 commits

Author SHA1 Message Date
Brian Wellington
412e5c6211 Add lwres_udp_port, so that test programs can use a different port. 2000-06-19 21:56:48 +00:00
Michael Graff
efe2f579ba add LWRES_CONTEXT_SERVERMODE 2000-06-15 23:48:11 +00:00
David Lawrence
03a0fca86d define and use LWRES_SOCKADDR_LEN_T for recvfrom() and stop compiler warnings
by casting the sixth parameter of recvfrom() to void *, as with
lib/isc/unix/socket.c.
2000-05-24 05:22:36 +00:00
David Lawrence
74cf566d92 "context.c", line 195: remark(1506): implicit conversion from "unsigned int"
to "long":  rounding, sign extension, or loss of accuracy may result

Fixed by ensuring unsigned long ctx->timeout does not overflow the signed
long timeout.tv_sec.
2000-05-14 03:20:17 +00:00
David Lawrence
8764af86f7 /*
* Compilers that use an older prototype for recvfrom() will
	 * warn about the type of the sixth parameter, fromlen.  It
	 * is now standardized as unsigned, specifically as socklen_t.
	 */

(... but the code itself still uses unsigned int.  This comment was added
because HP/UX is complaining now even as other compilers stopped complaining
when it was changed from signed int to unsigned int.)
2000-05-08 19:53:50 +00:00
David Lawrence
28beeb7067 fromlen changed from int to unsigned int 2000-05-08 17:57:01 +00:00
David Lawrence
1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
Michael Graff
d736db6dc5 lwres get-addr-by-name returns a linked list, not an array, of names. This
was needed to make adding the sortlist code, which will be checked in
in a few minutes.
2000-03-10 23:11:36 +00:00
Michael Graff
01933e9302 start changing from 'int' returns to 'lwres_result_t' 2000-02-23 01:46:34 +00:00
Michael Graff
7a166c5c61 completely decouple the lwres library from libisc. Bad michael for using isc/int.h and isc/lang.h, bad Mark for adding isc/tring.h, isc/net.h, and a few others. 2000-02-03 01:28:52 +00:00
Michael Graff
a4987cc031 pull the timeout from the context, that's what it is there for. 2000-02-02 23:22:56 +00:00
Michael Graff
d257033612 Thanks to Mark's fix, select() actually wasn't broken, I was. Use NULL for write/except fds again 2000-02-02 00:34:46 +00:00
Mark Andrews
f738cdef3d #include <sys/time.h>
Use LWRES_DEFAULT_TIMEOUT instead of LWRES_R_TIMEOUT to set select timout.
2000-02-01 06:46:47 +00:00
Michael Graff
b91bbaf50c implement timeouts 2000-02-01 02:59:40 +00:00
Michael Graff
1a70537f01 fix a bug introduced with today's changes. 2000-01-25 02:16:00 +00:00
Michael Graff
8cd870e3f5 return LWRES_R_* result codes (all are negative values, otehr than success, which is 0) 2000-01-24 21:57:07 +00:00
Andreas Gustafsson
f2edc636b0 use sendto() instead of send() because the latter is
broken on OSF1
2000-01-24 20:19:13 +00:00
Michael Graff
6448ffb2b9 use unsigned char, not void * in our buffers 2000-01-20 00:11:52 +00:00
Mark Andrews
369083db00 Link get*.c into build
INADDR_LOOPBACK is not defined for all OSs
2000-01-18 05:37:19 +00:00
Michael Graff
c1cfd8ef05 close the socket on context destroy 2000-01-18 01:45:09 +00:00
Michael Graff
7dbf5a0b64 implement actual network I/O for lw resolver. All I/O is run through the
context, where the sockets are cached.  This means one context per thread.
2000-01-18 01:43:12 +00:00
Michael Graff
e4f074a2c2 checkpoint 2000-01-14 21:55:44 +00:00
Michael Graff
64bed6c543 Checkpoint yesterday's work 2000-01-14 17:28:54 +00:00