Neopallium / nixio

System, Networking and I/O library for Lua. This is an unoffical fork of NIXO from: http://luci.subsignal.org/
http://neopallium.github.io/nixio/
Apache License 2.0
58 stars 23 forks source link

Reading from standard input? #18

Closed xopxe closed 1 month ago

xopxe commented 3 years ago

I have an applications that uses sockets to distribute data read from the standard input. I don't see how I can get a file descriptor for standard files for nixio. (the ones from Lua like io.input() do not work)

Neopallium commented 1 month ago

nixio.stdin for input (FD 0), nixio.stdout for output (FD 1) and nixio.stderr for error (FD 2)

Neopallium commented 1 month ago

Add to docs: https://neopallium.github.io/nixio/modules/nixio.html#Tables