From c954924a057482d691bdc52309f314beb7d87a3b Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Fri, 21 Apr 2023 21:38:26 +0200 Subject: [PATCH] Comment out udp multicast code for now. --- std/java/_std/sys/net/DatagramSocket.hx | 12 ++++++------ std/sys/net/DatagramSocket.hx | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/std/java/_std/sys/net/DatagramSocket.hx b/std/java/_std/sys/net/DatagramSocket.hx index 60c04d8232c..b1424e0cac7 100644 --- a/std/java/_std/sys/net/DatagramSocket.hx +++ b/std/java/_std/sys/net/DatagramSocket.hx @@ -30,12 +30,12 @@ class DatagramSocket { public var ttl(get, set):Int; public var onlyV6(get, set):Bool; - public function joinMulticastV4(multiaddr:Ipv4Addr, inter:Ipv4Addr):Void { - // channel.join() - } - public function joinMulticastV6(multiaddr:Ipv6Addr, inter:Int):Void {} - public function leaveMulticastV4(multiaddr:Ipv4Addr):Void {} - public function leaveMulticastV6(multiaddr:Ipv6Addr):Void {} + // public function joinMulticastV4(multiaddr:Ipv4Addr, inter:Ipv4Addr):Void { + // // channel.join() + // } + // public function joinMulticastV6(multiaddr:Ipv6Addr, inter:Int):Void {} + // public function leaveMulticastV4(multiaddr:Ipv4Addr):Void {} + // public function leaveMulticastV6(multiaddr:Ipv6Addr):Void {} public function sendTo(buf:Bytes, bufOffset:Int, bufSize:Int, address:SocketAddress):Int { var buf = ByteBuffer.wrap(buf.getData(), bufOffset, bufSize); diff --git a/std/sys/net/DatagramSocket.hx b/std/sys/net/DatagramSocket.hx index b2f70fe90b5..a41cb6473a6 100644 --- a/std/sys/net/DatagramSocket.hx +++ b/std/sys/net/DatagramSocket.hx @@ -16,10 +16,10 @@ extern class DatagramSocket { public var ttl(get, set):Int; public var onlyV6(get, set):Bool; - public function joinMulticastV4(multiaddr:Ipv4Addr, inter:Ipv4Addr):Void; - public function joinMulticastV6(multiaddr:Ipv6Addr, inter:Int):Void; - public function leaveMulticastV4(multiaddr:Ipv4Addr):Void; - public function leaveMulticastV6(multiaddr:Ipv6Addr):Void; + // public function joinMulticastV4(multiaddr:Ipv4Addr, inter:Ipv4Addr):Void; + // public function joinMulticastV6(multiaddr:Ipv6Addr, inter:Int):Void; + // public function leaveMulticastV4(multiaddr:Ipv4Addr):Void; + // public function leaveMulticastV6(multiaddr:Ipv6Addr):Void; public function sendTo(buf:Bytes, bufOffset:Int, bufSize:Int, address:SocketAddress):Int; public function receiveFrom(buf:Bytes, bufOffset:Int, bufSize:Int):{bytesRead:Int, address:SocketAddress};