ilusm.dev

pipe

IPC: named pipes, Unix domain sockets, shared memory regions.

Load with: use pipe

Quick example

use pipe

result = pipmk("./example")
prn(result)

Functions

Functions

pipmk(path)

Creates a new instance. Takes path.

piprd(p)

Reads data. Takes p.

pipwr(p, data)

Writes data. Takes p, data.

piprm(p)

Removes an item. Takes p.

pipux(path)

Performs the operation. Takes path.

pipuc(path)

Performs the operation. Takes path.

pipua(srv)

Performs the operation. Takes srv.

pipus(conn, data)

Performs the operation. Takes conn, data.

pipur(conn, max)

Performs the operation. Takes conn, max.

pipcl(p)

Closes or clears. Takes p.

pippr(path)

Processes or prints. Takes path.

pipsm(name, sz)

Performs the operation. Takes name, sz.

pipsg(shm)

Performs the operation. Takes shm.

pipss(shm, data)

Performs the operation. Takes shm, data.

pipsc(shm)

Performs the operation. Takes shm.

Module aliases

These are the public-facing names you call with use pipe:

  • pipe.fifo(p)
  • pipe.rd(p)
  • pipe.wr(p, d)
  • pipe.rm(p)
  • pipe.unix(p)
  • pipe.conn(p)
  • pipe.acpt(s)
  • pipe.send(c, d)
  • pipe.recv(c, m)
  • pipe.cls(p)
  • pipe.shm(n, s)
  • pipe.srd(s)
  • pipe.swr(s, d)
  • pipe.scls(s)

Notes

  • Unix-style pipe - chain functions, stream data.