Api/netlib.sendstring()

From Minux Wiki
Revision as of 23:56, 13 October 2024 by Shorun (talk | contribs) (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,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.


usage:

local temp = netlib.sendstring(client, string)


output:

transmits "string" to a netlib capable system,

returns true if successfull, false if failed.