summaryrefslogtreecommitdiff
path: root/src/node_serdes.cc
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2017-09-20 00:55:53 -0400
committercjihrig <cjihrig@gmail.com>2017-09-22 09:35:50 -0400
commit6983157adfb49d644fb27985f97f12a54fcc98e1 (patch)
treed5b17feb865dcc399ea736d0679ef82e6f4b74fc /src/node_serdes.cc
parentf4899ac4c07658c1857fb3a41ef305cb2cfa40e4 (diff)
downloadandroid-node-v8-6983157adfb49d644fb27985f97f12a54fcc98e1.tar.gz
android-node-v8-6983157adfb49d644fb27985f97f12a54fcc98e1.tar.bz2
android-node-v8-6983157adfb49d644fb27985f97f12a54fcc98e1.zip
dgram: refactor SO_RCVBUF and SO_SNDBUF methods
This commit refactors the get/set send/receive buffer size methods in the following ways: - Use booleans instead of strings and numbers to differentiate between the send and receive buffers. - Reduce the amount of branching and complexity in the C++ code. Refs: https://github.com/nodejs/node/pull/13623 PR-URL: https://github.com/nodejs/node/pull/15483 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'src/node_serdes.cc')
0 files changed, 0 insertions, 0 deletions