Api/netlib: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
netlib [[Api]], included in [https://wolfpak.vtchost.com/forum/viewtopic.php?f=17&t=164&sid=2985882c94cc3717be70c8c0bb51fc92 "netlib"] package, used to regulate network communication with verification, usefull for programs that do a lot of network chatter.
netlib [[Api]], included in [https://wolfpak.vtchost.com/forum/viewtopic.php?f=17&t=164&sid=2985882c94cc3717be70c8c0bb51fc92 "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.
It also '''verifies''' all data sent if it got received intact and returns appropriately, it's the TCP to rednet's UDP.




Line 9: Line 15:


[[Api/netlib.getstring()|netlib.getstring()]] - used to receive a string sent with sendstring
[[Api/netlib.getstring()|netlib.getstring()]] - used to receive a string sent with sendstring
[[Api/netlib.sendtable()|netlib.sendtable()]] - used to send a table to 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.
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.

Latest revision as of 00:37, 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.

It also verifies all data sent if it got received intact and returns appropriately, it's the TCP to rednet's UDP.



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.