summaryrefslogtreecommitdiff
path: root/lib/megaco/src/udp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearErlang/OTP2023-02-142-2/+2
|
* megaco: replace size/1 by xxx_size/1Kiko Fernandez-Reyes2023-02-022-5/+5
| | | | | | | | | | | | | | | | | | The <c>size/1</c> BIF is not optimized by the JIT, and its use can result in worse types for Dialyzer. When one knows that the value being tested must be a tuple, <c>tuple_size/1</c> should always be preferred. When one knows that the value being tested must be a binary, <c>byte_size/1</c> should be preferred. However, <c>byte_size/1</c> also accepts a bitstring (rounding up size to a whole number of bytes), so one must make sure that the call to <c>byte_size/</c> is preceded by a call to <c>is_binary/1</c> to ensure that bitstrings are rejected. Note that the compiler removes redundant calls to <c>is_binary/1</c>, so if one is not sure whether previous code had made sure that the argument is a binary, it does not harm to add an <c>is_binary/1</c> test immediately before the call to <c>byte_size/1</c>.
* [megaco] Fixed various dialyzer related issuesMicael Karlberg2022-07-132-12/+12
| | | | OTP-18179
* Update copyright yearErlang/OTP2022-02-151-1/+1
|
* otp: Fix `make TYPE=$TYPE` to work for all typesLukas Larsson2022-01-211-2/+2
|
* [megaco|udp-transport] UDP transport can now use inet_backend optionMicael Karlberg2021-08-303-19/+61
| | | | | | | The option 'inet_backend' is now handled to make it possible to specifically configure the inet-backend (inet or socket). OTP-17533
* update copyright-yearHenrik Nord2016-03-156-6/+6
|
* Change license text to APLv2Bruce Yinhe2015-06-186-60/+66
|
* Update copyright yearsBjörn-Egil Dahlberg2012-08-311-1/+1
|
* Update to work with whitespace in exec pathLukas Larsson2012-06-051-5/+5
| | | | | OTP-10106 OTP-10107
* The R13B03 release.OTP_R13B03Erlang/OTP2009-11-206-0/+881