
Nmap Developmentmailing list archives
Implementing nsock server mode
From: Henri Doreau <henri.doreau () gmail com>
Date: Tue, 11 Sep 2012 21:56:06 +0200
Hi,adding server mode support to nsock is something that have beendiscussed a couple times on this list. The patch attached is animplementation proposal.Briefly, I introduced two new functions to nsock.The first one (nsock_listen()) is a regular nsock event registrationfunction that binds a socket to the desired address, enables listeningmode and associate it to the given IOD.The second function (nsock_accept_client()) is aimed to be called fromwithin event handlers corresponding to nsock_listen events. Itbasically does what accept(2) does.In case we decide to land this patch, a couple additional safetychecks and extra comments would be needed, but I think the currentversion can already be interesting to discuss.Regards.-- Henri
Attachment:nsock_server_mode.diff
Description:
_______________________________________________Sent through the nmap-dev mailing listhttp://cgi.insecure.org/mailman/listinfo/nmap-devArchived athttp://seclists.org/nmap-dev/
Current thread:
- Implementing nsock server modeHenri Doreau (Sep 11)
- Re: Implementing nsock server modeDavid Fifield (Sep 22)
- Re: Implementing nsock server modeHenri Doreau (Sep 23)
- Re: Implementing nsock server modeDavid Fifield (Sep 23)
- Re: Implementing nsock server modeHenri Doreau (Sep 25)
- Re: Implementing nsock server modeHenri Doreau (Sep 23)
- Re: Implementing nsock server modeDavid Fifield (Sep 22)