Mark Andrews
b1f833cea5
Allow isc/print.h to be included multiple times.
...
cvs: ----------------------------------------------------------------------
1999-09-14 02:40:49 +00:00
Mark Andrews
cd71050434
ISC versions of vsnprint and snprintf.
1999-09-14 02:07:03 +00:00
Michael Graff
aca2a14afc
Implement MSG_TRUNC faking for UDP, on systems where recvmsg() doesn't set that
...
flag for us. To see if a UDP packet was truncated, look at
done_event->attributes and see if ISC_SOCKEVENTATTR_TRUNC is set.
1999-09-13 22:00:28 +00:00
Michael Graff
07a9b8b588
Make a few helper macros which will return lengths of regions rather than
...
requiring an isc_region_t to fill in. Use these macros in a few places.
1999-09-10 21:13:39 +00:00
Mark Andrews
c08fedf6a5
Not all OS's yet supply {v}snprintf().
...
This implementation is nearly complete except for outragous
precision values on floating point numbers. This impelemation
has a maximum precision of 512.
1999-09-10 12:45:28 +00:00
Michael Graff
3df43dad43
Make the ISC_BUFFER_VALID() be exported from buffer.h, so bufferlist.h
...
can use internal buffer pointers without fear by first performing the
same validity check used in the buffer.c file. This eliminates a
function call inside a loop, and the bufferlist.c file is really a
superset of buffers in many ways already.
1999-09-10 01:54:08 +00:00
James Brister
fe4cf362bb
Fixed bad use of return().
1999-09-09 22:32:33 +00:00
Bob Halley
ac70da9a27
allow malloc() and free() to be replaced
1999-09-09 19:32:03 +00:00
David Lawrence
b906092cb1
MSVC++ does not allow "long long". This uses the MSVC++ native types
...
to specify integers of the appropriate bit widths.
1999-09-09 15:19:43 +00:00
Andreas Gustafsson
b1a67f989f
ISC_LIST_APPENDLIST now clears list2 consistently
1999-09-08 05:56:21 +00:00
Bob Halley
8660a2d45b
stdio.h is required if tracing
1999-09-07 23:09:06 +00:00
Bob Halley
1819606910
add bitstring
1999-09-07 01:32:27 +00:00
Michael Graff
e4f133deed
Add isc_buffer_usedcount() and availablecount() -- which should become macros
1999-09-06 04:45:13 +00:00
Michael Graff
c520793fb9
Add isc_socket_sendv(), sendtov(), and recvv() that work
1999-09-06 04:44:40 +00:00
Michael Graff
85f0f10eeb
add bufferlist.c and bufferlist.h
1999-09-06 04:41:38 +00:00
Bob Halley
17836c7ab3
remove erroneous inet_ntop.@O@
1999-09-03 17:56:58 +00:00
Bob Halley
453f3213e9
undo ISC_MEM_RECORD
1999-09-03 17:45:17 +00:00
Michael Graff
c138fc2791
multi-buffer isc_socket_recvv() -- needs testing
1999-09-03 16:38:08 +00:00
Mark Andrews
feb72cfbe7
Record where memory requests and releases were made.
...
Double isc_mem_put()'s well now cause an INSIST failures.
These are on by default during development but can be turned
off by "#define ISC_MEM_RECORD 0" or equivalent.
1999-09-03 13:19:17 +00:00
Michael Graff
e823f5d408
common path for sending, too
1999-09-03 01:18:45 +00:00
Michael Graff
ad76b9d585
checkpoint new development: recvmsg() path is now common between all receiving
...
routines (internal and external)
1999-09-03 00:22:28 +00:00
Michael Graff
dfeb5a60db
fix
1999-09-02 23:34:09 +00:00
Michael Graff
9f1c521285
change some flags (so we can use internal ones, too)
1999-09-02 20:52:44 +00:00
Michael Graff
3467456ae4
deal with partial writes correctly
1999-09-02 20:06:55 +00:00
Michael Graff
ad4f276061
Use a static function to allocate and initialize isc_socketevent_t's
1999-09-02 18:56:11 +00:00
Mark Andrews
1d23294e9a
Add isc_sockaddr_totext()
1999-09-02 12:08:07 +00:00
Mark Andrews
ff89d6add5
add isc_sockaddr_totext()
1999-09-02 12:07:00 +00:00
Michael Graff
4556681e19
snapshot socket.[ch] code and commit dynbuf_t -> buffer_t changes
1999-09-02 02:10:44 +00:00
Michael Graff
daf8c5c687
Fix a bug where a 0-length UDP packet was sent when the output queue was empty.
1999-08-31 21:01:53 +00:00
Michael Graff
4c5faa6bcf
Do the bsd4.3/bsd4.4 msghdr test right.
1999-08-31 20:57:46 +00:00
Michael Graff
0fe778098d
Remove one compiler's warning by casting both sides to (void *) in a comparison. Lame, but there you have it.
1999-08-31 20:55:26 +00:00
Mark Andrews
5cf7c8439c
Add serial.c
1999-08-30 14:47:12 +00:00
Mark Andrews
c4ef94b1a2
Add 32 bit serial arithmetic support.
1999-08-30 14:45:01 +00:00
Bob Halley
a0c881832e
fix typo, linux problems
1999-08-28 19:30:23 +00:00
Michael Graff
194b6a2519
make sendmsg() and recvmsg() work on solaris and hpux through nasty methods
1999-08-28 05:34:41 +00:00
Michael Graff
2dcb05b6a8
more portable method to generate v6 from v4 sockaddrs
1999-08-28 05:33:29 +00:00
Michael Graff
e417ec684f
use sendmsg() rather than send() or sendto() now, and start on control message
...
processing
1999-08-28 04:26:49 +00:00
Michael Graff
7b0fde02e4
define a few socket event (read/write) attributes
1999-08-28 04:26:16 +00:00
Michael Graff
287a9e6ce0
reserve lower 8 bits for task library, higher 24 for application/library use
1999-08-28 04:25:48 +00:00
Michael Graff
b39326d06e
sizeof() the right thing
1999-08-26 01:29:17 +00:00
Michael Graff
483e300c61
use recvmsg() and sendmsg()
1999-08-25 23:50:48 +00:00
Andreas Gustafsson
27e48d2eea
don't test errno if there has been no error
1999-08-19 11:18:37 +00:00
Bob Halley
b59b7cff7a
Fix typo ("bufsiz" instead of "bufsize")
1999-08-18 19:32:46 +00:00
Andreas Gustafsson
b97feea8fd
bind 8 #734 : linux only fills in as many entries as will fill the buffer with SIOCGIFCONF
1999-08-18 05:00:52 +00:00
Bob Halley
f4e535251b
Detach from the correct task when canceling.
1999-07-28 23:25:16 +00:00
Michael Graff
11e2a221f1
hack on socket code more, trying to track down a bug
1999-07-28 23:04:33 +00:00
Michael Graff
d524cd03ec
make the isc_socket_recv() partial flag be a byte count instead, which allows
...
us to say "read at least 2 bytes" for things like a DNS packet over TCP.
1999-07-28 21:30:37 +00:00
Michael Graff
9bde328d3b
extremely minor formatting
1999-07-28 07:02:56 +00:00
Michael Graff
863563c38b
make writing use one event, too
1999-07-28 06:50:10 +00:00
Michael Graff
39fba32b02
oops, no debugging :)
1999-07-28 01:15:12 +00:00