dmiller
f4619edece
Update http urls for nmap.org to https
2015-11-05 20:41:05 +00:00
henri
b55ff2d68f
Don't associate nsock logging info to a nspool.
...
Make current loglevel and current log callback global
to the library. Attaching them to the nsock pool doesn't
bring any benefit and prevents from logging activity in
code sections that don't have access to a pool (such as
proxy chain specification parsing).
Updated external calls and nsock tests accordingly.
2015-06-27 08:21:53 +00:00
dmiller
04ac366666
Fix nsock tests using wrong type (clang complains)
2014-12-31 04:30:58 +00:00
dmiller
59de1a50de
Fix Nsock's make check: wrong value tested
2014-11-17 13:32:41 +00:00
dmiller
f6d70cd3e6
Revert r33815 (unrelated changes)
2014-11-17 13:31:56 +00:00
dmiller
2b9fade75b
Fix Nsock's make check: wrong value tested
2014-11-17 13:25:35 +00:00
henri
97103efdfb
Try to trigger connection failure in a more portable way.
...
The former one was hackish and didn't behave consistently
between operating systems.
Passing in a zero addrlen should reliably make connect(2) fail.
2014-08-10 18:31:00 +00:00
henri
240da6ede2
Attempt to connect to 0.0.0.1 to reliably trigger an error.
...
0.0.0.1 seems to always fail with EINVAL, where 192.0.2.1 actually sends
a probe (and timeout.)
2014-06-11 20:14:20 +00:00
henri
a00aa0a460
New nsock regression test: TestConnectFailure.
...
Trigger a ENETUNREACH error on connect() and check if properly reported.
As of now the test fails, the error isn't delivered.
2014-06-05 19:44:00 +00:00
henri
23ad881d6b
Removed superfluous includes.
...
Report and patch by Gisle Vanem.
2013-08-06 20:10:57 +00:00
henri
8475cef210
Return actual error code.
2013-05-11 16:00:11 +00:00
henri
3776852557
Added simple TCP connect test and setup ncat listeners.
...
The listeners are ncat-based echo servers:
- UDP
- TCP
- TCP + SSL
2013-05-10 08:26:48 +00:00