lib/arachni/rpc/protocol.rb
# Receives data from the network.
#
# Rhe data will be chunks of a serialized object which will be buffered
# until the whole transmission has finished.
#
# It will then unserialize it and pass it to {#receive_object}.
Receives data from the network.
Rhe data will be chunks of a serialized object which will be buffered
until the whole transmission has finished.

It will then unserialize it and pass it to {#receive_object}.
Receives data from the network . Rhe data will be chunks of a serialized object which will be buffered until the whole transmission has finished . It will then unserialize it and pass it to { #receive_object } .
def on_read( data )
        (@buf ||= '') << data
        while @buf.size >= 4
            if @buf.size >= 4 + ( size = @buf.unpack( 'N' ).first )
                @buf.slice!( 0, 4 )
                receive_object( unserialize( @buf.slice!( 0, size ) ) )
            else
                break
            end
        end
    end
def on_read ( data ) ( @buf ||= '' ) << data while @buf . size >= 4 if @buf . size >= 4 + ( size = @buf . unpack ( 'N' ) . first ) @buf . slice! ( 0 , 4 ) receive_object ( unserialize ( @buf . slice! ( 0 , size ) ) ) else break end end end
Receives data from the network.
Receives data from the network .
data
<not_specific>