Closer to release...
This commit is contained in:
parent
307603b24d
commit
f18d1b7cd0
31 changed files with 163 additions and 77 deletions
|
@ -5,10 +5,10 @@ if arg then
|
|||
port = arg[2] or port
|
||||
end
|
||||
print("Binding to host '" ..host.. "' and port " ..port.. "...")
|
||||
udp, err = udpsocket()
|
||||
if not udp then print(err) exit() end
|
||||
udp, err = socket.udp()
|
||||
if not udp then print(err) os.exit() end
|
||||
err = udp:setsockname(host, port)
|
||||
if err then print(err) exit() end
|
||||
if err then print(err) os.exit() end
|
||||
udp:timeout(5)
|
||||
ip, port = udp:getsockname()
|
||||
print("Waiting packets on " .. ip .. ":" .. port .. "...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue