Api/netlib

From Minux Wiki
Revision as of 00:11, 14 October 2024 by Shorun (talk | contribs)
Jump to navigation Jump to search

netlib Api, included in "netlib" package, used to regulate network communication with verification, usefull for programs that do a lot of network chatter.

netlib functions have support for "localhost", meaning you can communicate with your own system id and transmit strings or tables without having to change your program for local use.


netlib.ping() - used to test if a system is alive

netlib.getping() - replies to a ping in a proper way

netlib.sendstring() - used to send a string to another party.

netlib.getstring() - used to receive a string sent with sendstring

netlib.sendtable() - used to send a table to another party

netlib.gettable() - used to receive a table from another party