|  Developer
Updated on November 14, 2021

inspect_data()

  • Inspects received data on a connection handle without fetching them from an internal buffer.
  • Makes a copy of an internal implementation buffer.
Edit
  • params: hndl (int).
  • return: binary data (string)
Edit
				
					require "network"

hndl = network.connect( {} )
data = network.inspect_data( hndl )

if string.find( data, "OK" ) then
    print( "we got a specific chunk of data, do something useful..." )
end