|  Developer
Updated on November 14, 2021

send()

  • Sends data to a remote side.
  • It’s a plugin’s author responsibility to make sure all data was sent (repeatedly calling this function till all data gets sent or, using I/O async notification, call this function when it exact has to be called).
Edit
  • params: hndl (int), binary data (string).
  • return: amount of sent data (int)
Edit
				
					require "network"

hndl = network.connect( {} )
conn = network.send( hndl, "hello_world" )