mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-14 01:08:21 +01:00
10 lines
244 B
Lua
10 lines
244 B
Lua
socket = require"socket"
|
|
socket.unix = require"socket.unix"
|
|
u = assert(socket.unix.stream())
|
|
assert(u:bind("/tmp/foo"))
|
|
assert(u:listen())
|
|
c = assert(u:accept())
|
|
while 1 do
|
|
print(assert(c:receive()))
|
|
end
|