mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 22:52:43 +00:00
2c167153e9
Fixes an issue on macOS Mojave that was patched in fa1c281e79.
The list of changes can be found under
build/premake/premake5/CHANGES.txt.
This was SVN commit r22021.
20 lines
611 B
Lua
20 lines
611 B
Lua
local socket = require"socket"
|
|
local udp = socket.udp
|
|
local localhost = "127.0.0.1"
|
|
local port = assert(arg[1], "missing port argument")
|
|
|
|
se = udp(); se:setoption("reuseaddr", true)
|
|
se:setsockname(localhost, 5062)
|
|
print("se", se:getsockname())
|
|
sc = udp(); sc:setoption("reuseaddr", true)
|
|
sc:setsockname(localhost, 5061)
|
|
print("sc", sc:getsockname())
|
|
|
|
se:sendto("this is a test from se", localhost, port)
|
|
socket.sleep(1)
|
|
sc:sendto("this is a test from sc", localhost, port)
|
|
socket.sleep(1)
|
|
se:sendto("this is a test from se", localhost, port)
|
|
socket.sleep(1)
|
|
sc:sendto("this is a test from sc", localhost, port)
|