Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-08-27 | Fix type of Packet arg of gen_tcp:send/2 and gen_udp:send/4 | Filipe David Manana | |
The type is marked as a binary() or a string() but in practice it can be an iodata(). The test suite was updated to confirm the gen_tcp/2 and gen_udp:send/4 functions accept iodata() (iolists) packets. | |||
2011-08-25 | Improve types and specifications of the inet modules | Hans Bolinder | |
2011-05-09 | Types and specifications have been modified and added | Hans Bolinder | |
2010-09-06 | Let an 8-tuple given as ip_address() for gen_tcp/gen_udp/gen_sctp imply 'inet6' | Per Hedeland | |
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. | |||
2009-11-20 | The R13B03 release.OTP_R13B03 | Erlang/OTP | |