rename unix.tcp to unix.stream, unix.udp to unix.dgram

This commit is contained in:
enginix 2016-12-25 23:15:12 +08:00
parent ac3201d620
commit 3a33c37b9c
11 changed files with 129 additions and 129 deletions

9
test/unixstreamsrvr.lua Normal file
View file

@ -0,0 +1,9 @@
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