mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-13 06:04:31 +02:00
support datagram unix domain sockets
This commit is contained in:
8
test/unixtcpclnt.lua
Normal file
8
test/unixtcpclnt.lua
Normal file
@ -0,0 +1,8 @@
|
||||
socket = require"socket"
|
||||
socket.unix = require"socket.unix"
|
||||
c = assert(socket.unix.tcp())
|
||||
assert(c:connect("/tmp/foo"))
|
||||
while 1 do
|
||||
local l = io.read()
|
||||
assert(c:send(l .. "\n"))
|
||||
end
|
Reference in New Issue
Block a user