Api/netlib.sendstring()
Jump to navigation
Jump to search
netlib function used to send a string to another system
this will first send a regular rednet message with the string "sendstring" so the receiving side knows to expect a string, this is required for a "listen" program that listens for incomming calls.
after this the string you include is properly transmitted to the other party.
unlike rednet.send, this is a multi step process that verifies if the string has been received intact by the other side, it's the "TCP" to rednet's "UDP"
usage:
local temp = netlib.sendstring(client, string)
output:
transmits "string" to a netlib capable system,
returns true if successfull, false if failed.