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, start
join, join, join
public MulticastFastThreadReceiver() throws IOException
IOException
public MulticastGroup join(InetSocketAddress group, NetworkInterface nif, MulticastListener listener, int bufferSize)
MulticastReceiver
This 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 IMulticastReceiver
join
in class MulticastReceiver
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 grouppublic void drop(MulticastGroup feed)
drop
in interface IMulticastReceiver
drop
in class MulticastReceiver
feed
- a feedpublic boolean step()
MulticastReceiver
step
in interface IMulticastReceiver
step
in class MulticastReceiver
Copyright © 2005–2024 Onix Solutions. All rights reserved.