rename unix.tcp to unix.stream, unix.udp to unix.dgram
This commit is contained in:
parent
ac3201d620
commit
3a33c37b9c
11 changed files with 129 additions and 129 deletions
9
test/unixdgramsrvr.lua
Normal file
9
test/unixdgramsrvr.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
socket = require"socket"
|
||||
socket.unix = require"socket.unix"
|
||||
u = assert(socket.unix.dgram())
|
||||
assert(u:bind("/tmp/foo"))
|
||||
while 1 do
|
||||
x, r = assert(u:receivefrom())
|
||||
print(x, r)
|
||||
assert(u:sendto(">" .. x, r))
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue