plan9port/include
David du Colombier 3409bc9ae1 lib9/dial: add support for IPv6
The function p9dialparse() returns the host as a sockaddr_storage
structure instead of a u32int, to be able to handle both IPv4
and IPv6 addresses. Because the sockaddr_storage structure also
handle port numbers and Unix path names, there is no longer
need to set them in the calling functions. However, these values
are still returned for convenience.

The sockaddr_in and sockaddr_un structures have been replaced
by sockaddr_storage to handle Unix, IPv4 and IPv6 sockets.

Names and addresses are resolved using either gethostbyname()
or getaddrinfo() functions.

The getaddrinfo() function is documented in RFC2553 and standardized
since POSIX.1-2001. It supports both IPv4 and IPv6 addresses.
The gethostbyname() function is deprecated since POSIX.1-2008.
However, some libc implementations don't handle getaddrinfo()
properly, thus we preferred to try gethostbyname() first.

I've tried to preserve most of the old code logic to prevent
from surprising or unwanted behavior.

R=rsc
http://codereview.appspot.com/6255068
2012-06-02 21:50:59 +02:00
..
9p.h delete 9P2000.u 2010-12-07 13:34:11 -05:00
9pclient.h more functions 2006-07-23 02:55:34 +00:00
acme.h tweak for manual 2006-06-25 23:49:25 +00:00
ar.h More files. 2004-03-25 23:08:53 +00:00
auth.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
authsrv.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
avl.h libavl: import from Plan 9 2009-08-23 09:38:29 -07:00
bin.h autolib 2005-01-04 21:18:08 +00:00
bio.h libbio: lost changes to include/bio.h (@#%@#$ mercurial) 2008-06-03 08:32:36 -04:00
complete.h autolib 2005-01-04 21:18:08 +00:00
cursor.h Add the #goo to allow use in C++. 2003-11-25 01:40:27 +00:00
disk.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
diskfs.h hfs (David Swasey) 2007-05-28 20:27:25 +00:00
draw.h new draw interface 2006-06-25 23:49:35 +00:00
drawfcall.h include/drawfcall.h: remove redundant AUTOLIB(draw) 2008-06-04 20:58:12 -04:00
event.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
fcall.h delete 9P2000.u 2010-12-07 13:34:11 -05:00
flate.h make flate crc32 work when ulong is 64 bits 2010-02-07 16:51:28 -08:00
fmt.h convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
frame.h libframe: add frredraw prototype 2008-07-20 03:18:49 -04:00
geometry.h NetBSD support. Thanks to Christoph Lohmann. 2005-03-28 15:58:14 +00:00
html.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
httpd.h add searchpairs 2007-04-21 20:41:08 +00:00
ip.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
keyboard.h merge 2009-04-30 07:29:24 -07:00
lib9.h Today's changes. 2004-03-25 23:03:57 +00:00
libc.h lib9/dial: add support for IPv6 2012-06-02 21:50:59 +02:00
libsec.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
libString.h autolib 2005-01-04 21:18:08 +00:00
mach.h libmach, acid, db: 64-bit support 2012-02-19 18:11:39 -05:00
memdraw.h autolib 2006-06-25 23:49:56 +00:00
memlayer.h include/memlayer.h: remove redundant AUTOLIB (Brian Stuart) 2008-06-10 11:35:29 -04:00
mouse.h remove junk 2006-06-25 23:49:43 +00:00
mp.h change mpdigit to uint -- 64-bit mp library not so working 2007-01-15 00:32:17 +00:00
mux.h In non-blocking recv functions in libmux and libdraw, 2006-11-04 18:46:00 +00:00
ndb.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
nfs3.h extra 2006-05-05 02:42:57 +00:00
plumb.h plumbunmount 2006-06-25 23:50:09 +00:00
regexp.h new files 2003-11-23 18:25:35 +00:00
regexp9.h checkpoint 2005-01-14 03:45:44 +00:00
sunrpc.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
thread.h libthread: remove unimplemented chaninit 2009-04-30 08:00:40 -07:00
u.h libmach, acid, db: 64-bit support 2012-02-19 18:11:39 -05:00
utf.h convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
venti.h libventi: add functions vtsha1 and vtsha1check 2012-01-21 10:01:20 +01:00