summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2024-04-19 09:19:12 +0200
committerJo-Philipp Wich <jo@mein.io>2024-04-24 12:30:28 +0200
commite8d78a26da0c6a3144b2b08bee989564a516b951 (patch)
tree6ef6a1e786df552d2efb7c697306f834475ebe59 /docs
parentcfe137be068a7ba1895d3c9bcb7b38d21e5a95dd (diff)
lib: introduce socket library
Introduce a new socket module which provides bindings for the BSD sockets API to ucode scripts. Example usage: import * as socket from 'socket'; let sk = socket.create(socket.AF_INET, socket.SOCK_STREAM); sk.connect("192.168.1.1", 80); sk.send("GET / HTTP/1.0\r\n\r\n"); print(sk.recv(4096)); sk.close(); Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions