mirror of
https://github.com/nmap/nmap.git
synced 2026-01-07 06:59:03 +00:00
Externally: The calling application can build a proxychain object and assign it to one (or more) NSP. Once a NSP get assigned a proxychain it's not possible to remove it so that consistency is (should be...) ensured. Internally: An IOD comes with a proxychain context structure storing the whole tunnel state. Also each proxy type now has a table of associated functions to use as hooks for TCP connects(), read() and write() requests. As a result, adding support of new proxy type should be easier. Code also gains readability in comparison to large switch/cases that redirect the execution flow according to the given proxy type.