Api/netlib: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:


[[Api/netlib.gettable()|netlib.gettable()]] - used to receive a table from another party
[[Api/netlib.gettable()|netlib.gettable()]] - used to receive a table from another party
this library is '''standalone''' and can be installed on other system, to do so, download the following files:
'''main api file''' - https://minux.vtchost.com/apt/repository/netlib/etc/api  - load this file as an api or with require, this is the actual api file
'''additional binaries and tools''' - https://minux.vtchost.com/apt/repository/netlib/bin/ - make your pick, do as the names suggest. require the api to be loaded to function.

Revision as of 00:13, 14 October 2024

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


this library is standalone and can be installed on other system, to do so, download the following files:

main api file - https://minux.vtchost.com/apt/repository/netlib/etc/api - load this file as an api or with require, this is the actual api file

additional binaries and tools - https://minux.vtchost.com/apt/repository/netlib/bin/ - make your pick, do as the names suggest. require the api to be loaded to function.