Porting to LUA 5.0 final
This commit is contained in:
parent
c1ef3e7103
commit
0f6c8d50a9
32 changed files with 1539 additions and 1128 deletions
|
@ -7,7 +7,8 @@ end
|
|||
host = socket.toip(host)
|
||||
udp = socket.udp()
|
||||
print("Using host '" ..host.. "' and port " ..port.. "...")
|
||||
err = udp:sendto("anything", host, port)
|
||||
udp:setpeername(host, port)
|
||||
sent, err = udp:send("anything")
|
||||
if err then print(err) exit() end
|
||||
dgram, err = udp:receive()
|
||||
if not dgram then print(err) exit() end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue