diff options
author | Raimo Niskanen <[email protected]> | 2019-05-23 12:27:34 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2019-06-17 10:44:33 +0200 |
commit | abf6018726321a920948d9ba6dcea7f4047a4e4a (patch) | |
tree | 0119421e8f6c7485872f35f04e7c90b727f3cb56 /lib/kernel/src/inet.erl | |
parent | 341ad06da0f98586bf679276999189842f61747f (diff) | |
download | otp-abf6018726321a920948d9ba6dcea7f4047a4e4a.tar.gz otp-abf6018726321a920948d9ba6dcea7f4047a4e4a.tar.bz2 otp-abf6018726321a920948d9ba6dcea7f4047a4e4a.zip |
Introduce udp send ancillary data argument down to inet_drv
Diffstat (limited to 'lib/kernel/src/inet.erl')
-rw-r--r-- | lib/kernel/src/inet.erl | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl index 9f22eb6aaa..7940903658 100644 --- a/lib/kernel/src/inet.erl +++ b/lib/kernel/src/inet.erl @@ -75,7 +75,8 @@ -export_type([address_family/0, socket_protocol/0, hostent/0, hostname/0, ip4_address/0, ip6_address/0, ip_address/0, port_number/0, - local_address/0, socket_address/0, returned_non_ip_address/0, + family_address/0, local_address/0, + socket_address/0, returned_non_ip_address/0, socket_setopt/0, socket_getopt/0, ancillary_data/0, posix/0, socket/0, stat_option/0]). %% imports @@ -100,11 +101,16 @@ 0..65535,0..65535,0..65535,0..65535}. -type ip_address() :: ip4_address() | ip6_address(). -type port_number() :: 0..65535. --type local_address() :: {local, File :: binary() | string()}. +-type family_address() :: inet_address() | inet6_address() | local_address(). +-type inet_address() :: + {'inet', {ip4_address() | 'any' | 'loopback', port_number()}}. +-type inet6_address() :: + {'inet6', {ip6_address() | 'any' | 'loopback', port_number()}}. +-type local_address() :: {'local', File :: binary() | string()}. -type returned_non_ip_address() :: - {local, binary()} | - {unspec, <<>>} | - {undefined, any()}. + {'local', binary()} | + {'unspec', <<>>} | + {'undefined', any()}. -type posix() :: 'eaddrinuse' | 'eaddrnotavail' | 'eafnosupport' | 'ealready' | 'econnaborted' | 'econnrefused' | 'econnreset' | |