From 7e1d6a732388ac83bf4e6512a07e0c1ca7283586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sun, 3 Sep 2017 11:17:54 +0200 Subject: [PATCH] Add listenUDP overload taking a NetworkAddress. --- source/vibe/core/net.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index dfbc17e..58f892d 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -208,6 +208,11 @@ TCPConnection connectTCP(NetworkAddress addr, NetworkAddress bind_address = anyA /** Creates a bound UDP socket suitable for sending and receiving packets. */ +UDPConnection listenUDP(ref NetworkAddress addr) +{ + return UDPConnection(addr); +} +/// ditto UDPConnection listenUDP(ushort port, string bind_address = "0.0.0.0") { auto addr = resolveHost(bind_address, AddressFamily.UNSPEC, false);