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
99b24bbca2
include <isc/print.h>
2000-05-03 22:04:49 +00:00
Michael Graff
4142e747f2
use new isc_lctx logging
2000-05-03 21:09:49 +00:00
David Lawrence
32eddfc189
120. [cleanup] <isc/socket.h> does not need <isc/boolean.h>,
...
<isc/bufferlist.h>, <isc/task.h>, <isc/mem.h> or
<isc/net.h>.
2000-04-28 03:53:48 +00:00
David Lawrence
6e49e91bd0
103. [func] libisc buffer API changes for <isc/buffer.h>:
...
Added:
isc_buffer_base(b) (pointer)
isc_buffer_current(b) (pointer)
isc_buffer_active(b) (pointer)
isc_buffer_used(b) (pointer)
isc_buffer_length(b) (int)
isc_buffer_usedlength(b) (int)
isc_buffer_consumedlength(b) (int)
isc_buffer_remaininglength(b) (int)
isc_buffer_activelength(b) (int)
isc_buffer_availablelength(b) (int)
Removed:
ISC_BUFFER_USEDCOUNT(b)
ISC_BUFFER_AVAILABLECOUNT(b)
isc_buffer_type(b)
Changed names:
isc_buffer_used(b, r) ->
isc_buffer_usedregion(b, r)
isc_buffer_available(b, r) ->
isc_buffer_available_region(b, r)
isc_buffer_consumed(b, r) ->
isc_buffer_consumedregion(b, r)
isc_buffer_active(b, r) ->
isc_buffer_activeregion(b, r)
isc_buffer_remaining(b, r) ->
isc_buffer_remainingregion(b, r)
Buffer types were removed, so the ISC_BUFFERTYPE_*
macros are no more, and the type argument to
isc_buffer_init and isc_buffer_allocate were removed.
isc_buffer_putstr is now void (instead of isc_result_t)
and requires that the caller ensure that there
is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
Michael Graff
7ce10e3d8f
quiet a compiler warning
2000-04-19 22:36:07 +00:00
Michael Graff
e44487bfc2
convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc.
2000-04-17 19:22:44 +00:00
Michael Graff
0ed4c4ee35
make unreachable hard errors.
2000-04-14 15:38:28 +00:00
Mark Andrews
b61bbad878
Freebsd 4.0 needs sys/param.h for ALIGN
2000-04-13 08:10:18 +00:00
Michael Graff
b206fa17b2
allocate space for cmsg more correctly. Grr.
2000-03-15 20:05:06 +00:00
Michael Graff
788354c051
Currently, descriptors with changes are sent to the watcher via a pipe.
...
Previously, both ends were set to non-blocking I/O. Now, only the
reader is set non-blocking. This means the writer will block for a while
if the pipe fills, but since the watcher is in a different thread from
the reader, the pipe will eventually drain, and the writer can continue.
This is really nothing more than a lock, just not a mutex-type lock.
2000-03-15 19:48:11 +00:00
Michael Graff
ae8d0aedd6
implement pktinfo through dispatcher -> named client
2000-03-14 03:30:52 +00:00
Michael Graff
0205c5a4ad
fix case where CMSG_SPACE() is not a macro
2000-03-13 21:09:56 +00:00
Andreas Gustafsson
427c9218c2
isc_socket_connect() leaked memory when connect() returned
...
EHOSTUNREACH
2000-02-09 19:02:40 +00:00
Bob Halley
ca41b452ed
update copyrights
2000-02-03 23:08:31 +00:00
Michael Graff
5726326ccd
fix? a socket problem with canceling things, again
2000-02-02 19:00:01 +00:00
Bob Halley
6e1e90b9b6
Undo 1.100 which caused problems on platforms other than Linux.
2000-02-02 02:34:30 +00:00
Andreas Gustafsson
7b24a94d11
typo in comment
2000-02-02 00:41:26 +00:00
Bob Halley
2314617d4a
Fix problem with canceling connecting sockets.
...
The manager will no longer try to dispatch internal events for dead sockets,
preventing a situation where the ref count could go from 0 back to 1!
2000-01-28 01:31:21 +00:00
Bob Halley
b199c609b1
Only set SO_REUSEADDR for TCP sockets.
2000-01-22 02:29:49 +00:00
Michael Graff
440be4c866
move util.h to <isc/util.h>
1999-12-16 22:24:22 +00:00
Michael Graff
f39add73bc
Actually commit the ipv6 socket code I wrote last week.
1999-12-15 20:47:38 +00:00
Michael Graff
efff2a52af
Make this compile (without ipv6 socket support) on half-done implementations.
1999-12-10 16:51:39 +00:00
Michael Graff
c2b450fa72
don't hide the fact that some ipv6 stacks aren't all there.
1999-12-09 00:19:31 +00:00
Michael Graff
8b7f596003
Use one more returned-event attribute to indicate fatal error, where
...
retrying on a socket is pointless, as it will immediately fail.
1999-12-08 22:53:08 +00:00
Michael Graff
633c5ee7b9
remove a debugging statement that is no longer useful, and fix an error return
1999-12-06 23:07:05 +00:00
Michael Graff
857f8bd11b
Cast to (void *) to shut up compiler warnings re signed/unsigned char *. It
...
would be so nice if people would define 'msg_control' in a msghdr to be
consistant with other pointers...
1999-12-06 22:33:20 +00:00
James Brister
ce84c593e8
gcc 2.7.2.3 and 2.95.1 both dislike '#warn' but will accept '#warning' cpp
...
statements.
1999-12-06 12:35:19 +00:00
Michael Graff
6149906644
ipv6 changes
1999-12-04 01:27:44 +00:00
Bob Halley
176323fd5e
set msg_namelen to the right size
1999-11-01 22:51:19 +00:00
Bob Halley
10ba7f6f56
lint
1999-10-05 19:50:53 +00:00
Bob Halley
271d5bfc5c
conforming changes for task API simplification
1999-09-23 21:31: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
Michael Graff
c520793fb9
Add isc_socket_sendv(), sendtov(), and recvv() that work
1999-09-06 04:44:40 +00:00
Michael Graff
c138fc2791
multi-buffer isc_socket_recvv() -- needs testing
1999-09-03 16:38:08 +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
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
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
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
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