public interface MulticastListener
Modifier and Type | Method and Description |
---|---|
void |
onClose(MulticastGroup feed)
onClose event happens when feed is closed, whatever it
|
void |
onException(MulticastGroup feed,
Exception ex)
Is called in case of exception
|
void |
onReceive(MulticastGroup feed,
byte[] data,
int offset,
int length)
is called on every received package
|
void onReceive(MulticastGroup feed, byte[] data, int offset, int length)
feed
- the feed received packetdata
- byte buffer that contains the data. Doesn't save it's value out of onReceive scope.offset
- offset of the packet in data[]length
- length of the packetvoid onClose(MulticastGroup feed)
feed
- closed feedvoid onException(MulticastGroup feed, Exception ex)
feed
- the feed where exception has happenedex
- an ExceptionCopyright © 2005–2024 Onix Solutions. All rights reserved.