2007-04-10 00:04:13 +02:00
|
|
|
socket = require"socket"
|
|
|
|
socket.unix = require"socket.unix"
|
2016-12-25 16:15:12 +01:00
|
|
|
c = assert(socket.unix.stream())
|
2007-04-10 00:04:13 +02:00
|
|
|
assert(c:connect("/tmp/foo"))
|
|
|
|
while 1 do
|
|
|
|
local l = io.read()
|
|
|
|
assert(c:send(l .. "\n"))
|
|
|
|
end
|