mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 14:28:21 +01:00
11 lines
208 B
Lua
11 lines
208 B
Lua
socket = require("socket")
|
|
f = loadlib("etc-1.0.dylib", "unix_open")
|
|
f(socket)
|
|
u = socket.unix()
|
|
print(u:bind("/tmp/luasocket"))
|
|
print(u:listen())
|
|
c = u:accept()
|
|
while 1 do
|
|
print(assert(c:receive()))
|
|
end
|