mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-19 11:48:21 +01:00
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!")
|