aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cosNotification
diff options
context:
space:
mode:
authorPer Hedeland <[email protected]>2010-08-24 19:53:45 +0200
committerRaimo Niskanen <[email protected]>2010-09-06 12:15:39 +0200
commit8e415cb7094e9ea4287a56daaf227666f2862ed2 (patch)
tree2284e4a38c2a4a0b49aca83c2a1653eb700c03b5 /lib/cosNotification
parent9ea58dff408c0c72f5a6ad0e11b521a80292b024 (diff)
downloadotp-8e415cb7094e9ea4287a56daaf227666f2862ed2.tar.gz
otp-8e415cb7094e9ea4287a56daaf227666f2862ed2.tar.bz2
otp-8e415cb7094e9ea4287a56daaf227666f2862ed2.zip
Let an 8-tuple given as ip_address() for gen_tcp/gen_udp/gen_sctp imply 'inet6'
Currently an 8-tuple representing an IPv6 address is not accepted by gen_tcp:listen/2, gen_tcp:connect/3,4, gen_udp:open/2, or gen_sctp:open/1,2, unless the 'inet6' option is also given. This means that an application that has obtained the address, e.g. from configuration that allows for either IPv4 or IPv6, must always check the type of the address before passing it to these functions. Letting the functions infer 'inet6' from the 8-tuple, in case other options do not override this choice, improves usability.
Diffstat (limited to 'lib/cosNotification')
0 files changed, 0 insertions, 0 deletions