Api/netlib: Difference between revisions
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
'''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. | '''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. | ||
ping.sh - pings a system | |||
getfile.sh - receives a file sent trough sendfile | |||
sendfile.sh - sends a file to a system waiting with getfile | |||
netlib.sh - used to test incomming netlib messages, networking diagnostics utility. |
Revision as of 00:18, 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.
ping.sh - pings a system
getfile.sh - receives a file sent trough sendfile
sendfile.sh - sends a file to a system waiting with getfile
netlib.sh - used to test incomming netlib messages, networking diagnostics utility.