public class MulticastGroup extends Object implements Closeable, AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Detaches this feed from MulticastReceiver.
|
int |
getBufferSize() |
InetSocketAddress |
getGroup() |
NetworkInterface |
getIf() |
MulticastListener |
getListener() |
MulticastReceiver |
getOwner()
returns null if the MulticastGroup is detached (dropped)
|
void |
onReceive(byte[] data,
int size)
Internal use only.
|
public NetworkInterface getIf()
public InetSocketAddress getGroup()
public MulticastListener getListener()
public int getBufferSize()
public void onReceive(byte[] data, int size)
onReceive will be called from Connection when its receives a new UDP multicast packet
data
- array that contains UDP packetsize
- size of the packet. should be less than data.lengthpublic MulticastReceiver getOwner()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2005–2024 Onix Solutions. All rights reserved.