SKS OCDoc
OpenComputers
Computronics
Minitel

lib/minitel.lua

net.send(to^string^, port^number^, ldata^string^): boolean

send arbitrary data ldata reliably to host to on port port

net.rsend(to^string^, port^number^, data^string^, block^boolean^): boolean

send a reliable packet to host to on port port with data data, with block set to true to disable blocking

net.genPacketID(): string

generate a random 16-character string, for use in packet IDs

net.flisten(port^number^, listener^function^): function

run function listener on a connection to port

net.open(to^string^, port^number^): buffer

open a socket to host to on port port

net.listen(port^number^): buffer

listen for connections on port port in a blocking manner

net.usend(to^string^, port^number^, data^string^, npID^string^)

send an unreliable packet to host to on port port with data data, optionally with the packet ID npID

© ShadowKat Studios
The software used to generate this page is licensed under the Mozilla Public License version 2 and can be found here