When executed on Windows systems, reading from stdout and stderr created a deadlock if the output from nmap was larger than the buffer size. Fixed this by reading outputs in different threads and returning the results as CompletableFuture.
Also added the interface INmap4j to make it easier to mock/fake an object in unit tests when using this library.
When executed on Windows systems, reading from stdout and stderr created a deadlock if the output from nmap was larger than the buffer size. Fixed this by reading outputs in different threads and returning the results as CompletableFuture.
Also added the interface INmap4j to make it easier to mock/fake an object in unit tests when using this library.