public class MulticastFastThreadReceiver extends MulticastThreadReceiver
PACKET_MAXSIZE| Constructor and Description |
|---|
MulticastFastThreadReceiver() |
| Modifier and Type | Method and Description |
|---|---|
void |
drop(MulticastGroup feed)
Does nothing: before start thread there is no point to call,
when thread is running it cannot be removed,
when thread is already stopped, it will receive nothing
|
MulticastGroup |
join(InetSocketAddress group,
NetworkInterface nif,
MulticastListener listener,
int bufferSize)
Creates a feed and send a join request.
|
boolean |
step()
process one step of receiving.
|
close, getThread, interrupt, startjoin, join, joinpublic MulticastFastThreadReceiver()
throws IOException
IOExceptionpublic MulticastGroup join(InetSocketAddress group, NetworkInterface nif, MulticastListener listener, int bufferSize)
MulticastReceiverThis implementation creates a new handler to receive, and puts it into
join queue. All such requests will be proceed in MulticastReceiver.step() method
join in interface IMulticastReceiverjoin in class MulticastReceivergroup - 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 grouppublic void drop(MulticastGroup feed)
drop in interface IMulticastReceiverdrop in class MulticastReceiverfeed - a feedpublic boolean step()
MulticastReceiverstep in interface IMulticastReceiverstep in class MulticastReceiverCopyright © 2014–2025 Onix Solutions. All rights reserved.