avi.l4.collect (num_bytes)

DataScript

Function avi.l4.collect(num_bytes)
Description Gathers num_bytes before subjecting the payload to the datascript.
If num_bytes are not gathered before TCP/UDP idle timeouts, the connection would be closed by the idle timers.
This API/DataScript will keep yielding till num_bytes are available.
Events VS_DATASCRIPT_EVT_L4_REQUEST
VS_DATASCRIPT_EVT_L4_RESPONSE
Parameter Number of bytes
Returns Number of bytes currently buffered
Example

Buffered = avi.l4.collect(1000)  
Payload = avi.l4.read(200)