aboutsummaryrefslogtreecommitdiff
path: root/test/unixclnt.lua
blob: 517153518432f8c078a6115fbe1d1f015e86c473 (plain)
1
2
3
4
5
6
7
8
socket = require"socket"
socket.unix = require"socket.unix"
c = assert(socket.unix())
assert(c:connect("/tmp/foo"))
while 1 do
    local l = io.read()
    assert(c:send(l .. "\n"))
end