public interface IMulticastReceiver extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
drop(MulticastGroup feed)
Drops (and closes) attached feed.
|
MulticastGroup |
join(InetSocketAddress group,
NetworkInterface nif,
MulticastListener listener)
Short version of join with default buffer size
This method is equivalent to:
join(group, nif, listener, MulticastReceiver.PACKET_MAXSIZE);
Creates a feed and send a join request. |
MulticastGroup |
join(InetSocketAddress group,
NetworkInterface nif,
MulticastListener listener,
int bufferSize)
Creates a feed and send a join request.
|
MulticastGroup |
join(String groupId,
int port,
NetworkInterface nif,
MulticastListener listener)
Short version of join with default buffer size
This method is equivalent to:
join(groupId, port, nif, listener, MulticastReceiver.PACKET_MAXSIZE);
|
MulticastGroup |
join(String groupId,
int port,
NetworkInterface nif,
MulticastListener listener,
int bufferSize)
Creates a feed and send a join request.
|
boolean |
step()
process one step of receiving.
|
MulticastGroup join(String groupId, int port, NetworkInterface nif, MulticastListener listener)
Short version of join with default buffer size
This method is equivalent to:
join(groupId, port, nif, listener, MulticastReceiver.PACKET_MAXSIZE);
groupId - a multicast address to joinport - port number where to receive UDP packetsnif - The network interface on which to join the grouplistener - of the MulticastGroup events.MulticastGroup join(String groupId, int port, NetworkInterface nif, MulticastListener listener, int bufferSize)
groupId - a multicast address to joinport - port number where to receive UDP packetsnif - The network interface on which to join the grouplistener - listener of the MulticastGroup events.bufferSize - max packet size for this multicast groupMulticastGroup join(InetSocketAddress group, NetworkInterface nif, MulticastListener listener, int bufferSize)
group - a multicast address to join with UDP port Numbernif - The network interface on which to join the grouplistener - of the MulticastGroup events.bufferSize - buffer size for UDP packets of the corresponded groupMulticastGroup join(InetSocketAddress group, NetworkInterface nif, MulticastListener listener)
Short version of join with default buffer size
This method is equivalent to:
join(group, nif, listener, MulticastReceiver.PACKET_MAXSIZE);
Creates a feed and send a join request.group - a multicast address to join with UDP port Numbernif - The network interface on which to join the grouplistener - of the MulticastGroup events.void drop(MulticastGroup feed)
feed - feed to drop from receiving multicastboolean step()
Copyright © 2005–2025 Onix Solutions. All rights reserved.