mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-16 10:18:21 +01:00
e54f78c61c
Add. test_bind.lua
6 lines
290 B
Lua
6 lines
290 B
Lua
local socket = require "socket"
|
|
local u = socket.udp() assert(u:setsockname("*", 5088)) u:close()
|
|
local u = socket.udp() assert(u:setsockname("*", 0)) u:close()
|
|
local t = socket.tcp() assert(t:bind("*", 5088)) t:close()
|
|
local t = socket.tcp() assert(t:bind("*", 0)) t:close()
|
|
print("done!") |