mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 22:38:21 +01:00
9 lines
192 B
Lua
9 lines
192 B
Lua
socket = require"socket"
|
|
socket.unix = require"socket.unix"
|
|
c = assert(socket.unix.stream())
|
|
assert(c:connect("/tmp/foo"))
|
|
while 1 do
|
|
local l = io.read()
|
|
assert(c:send(l .. "\n"))
|
|
end
|