Page MenuHomePhabricator

net: Improve and document SOCKS code
ClosedPublic

Authored by deadalnix on Oct 3 2018, 15:36.

Details

Summary

Make the SOCKS code more consistent, and document the constants used.

This is a backport of Core PR11397

Depends on D1872

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jasonbcox added inline comments.
src/netbase.cpp
241 ↗(On Diff #5250)

char* -> uint8_t* seems like it provides no value if it's just going to be cast inside the function. Is this just to be consistent, external to the implementation details, with other migrations to uintX_t types?

deadalnix added inline comments.
src/netbase.cpp
241 ↗(On Diff #5250)

The signedness of char is implementation defined (signed on X86, unsigned on ARM). I don't think we want to deal with that more than strictly required.

This revision is now accepted and ready to land.Oct 5 2018, 05:31
This revision was automatically updated to reflect the committed changes.