在类EpollDatagramChannelConfig,有4个方法是这样的: @Override
public EpollDatagramChannelConfig setTimeToLive(int ttl) {
throw new UnsupportedOperationException("Multicast not supported");
}
它们是: setLoop
我有一些代码从多播套接字读取数据直到用户定义的结束时间。如果线程通过调用Thread.interrupt(或通过您可以提出的任何其他用户启动的操作)中断,我还想停止读取数据。当线程中断时,我无法弄清楚如何获得通知。现有的代码如下: // These are the constants I am given
final int mcastPort = ...;
final InetAddre