Movatterモバイル変換


[0]ホーム

URL:


Home page logo
nmap-dev logo

Nmap Developmentmailing list archives

PreviousBy DateNext
PreviousBy ThreadNext

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/

PreviousBy DateNext
PreviousBy ThreadNext

Current thread:


[8]ページ先頭

©2009-2025 Movatter.jp