Nmap Development mailing list archives

Re: nmap socket bind to the udp port


From: SAI LAKSHMI Bhavana <oslbhavana () gmail com>
Date: Thu, 15 Mar 2012 15:15:13 +0530

On Wed, Mar 14, 2012 at 10:25 PM, idtjoe1 <josephriz () gmail com> wrote:

Hello Sai,

Can you tell us the usage of stdnse.make_buffer() function vs
socket:receive_lines(1). When to use one vs another? Is function
stdnse.make_buffer  documented anywhere?

Your help is appreciated.

Hello,

If the data contains more than 1 line

In stdnse.make_buffer() only  a piece of seperated data would be
returned where the data need not be seperated only by "\n".

But in socket:recieve_lines(1) all the data would be read . Here 1 is
the minimum number of lines to be read.

Here is the link for the code of make_buffer()
http://nmap.org/svn/nselib/stdnse.
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: