Update.
This commit is contained in:
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// retoor <retoor@molodetz.nl>
|
||||
|
||||
import "udp" for UdpSocket
|
||||
|
||||
var socket = UdpSocket.new()
|
||||
socket.bind("127.0.0.1", 0)
|
||||
|
||||
System.print(socket.localAddress) // expect: 127.0.0.1
|
||||
System.print(socket.localPort > 0) // expect: true
|
||||
|
||||
socket.close()
|
||||
Reference in New Issue
Block a user