Api/netlib.sendstring(): Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
(Created page with "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. '''usage:''' local temp = netlib.sendstring(client, string) '''output:''' transmits "string" to a netlib capable system,...")
 
No edit summary
Line 4: Line 4:


after this the string you include is properly transmitted to the other party.
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"





Revision as of 23:56, 13 October 2024

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.