Skip to content

Commit

Permalink
Comment out udp multicast code for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Apprentice-Alchemist committed Jun 18, 2024
1 parent f0f6cda commit c954924
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions std/java/_std/sys/net/DatagramSocket.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions std/sys/net/DatagramSocket.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit c954924

Please sign in to comment.