1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 14:39:02 +00:00

Refactored proxy code to use a "strategy" design pattern.

Proxy backends are selected at runtime. Each proxy exports a list of operations
to the rest of the library. This is similar to the way IO engines are
implemented within nsock.
This commit is contained in:
henri
2013-04-22 19:30:40 +00:00
parent 08c44fe775
commit 3451220630
5 changed files with 216 additions and 143 deletions

View File

@@ -67,7 +67,7 @@
/* Defined in nsock_proxy.c */
extern struct proxy_op ProxyOps[];
extern struct proxy_op *ProxyOps[];
/* Create the actual socket (nse->iod->sd) underlying the iod. This unblocks the