"org.w3c.www.protocol.http.cache.CacheFilter");
cache = (CacheFilter) manager.getGlobalFilter(c);
} catch (Exception ex) {
}
if ( cache == null )
throw new PropRequestFilterException("no cache filter.");
// Initialize our ICPReceiver:
try {
// Various formats for local address:
this.localaddr = InetAddress.getLocalHost().getAddress();
this.localsrc = (( (localaddr[0] & 0xff) << 24)
+ ((localaddr[1] & 0xff) << 16)
+ ((localaddr[2] & 0xff) << 8)
+ (localaddr[3] & 0xff));
this.addr = InetAddress.getByName(saddr);
this.socket = new MulticastSocket(port);
this.socket.setTimeToLive(ttl);
this.socket.joinGroup(addr);
} catch (Exception ex) {
ex.printStackTrace();
throw new PropRequestFilterException(ex.getMessage());
}
setName("mICP");
setDaemon(true);
start();
manager.setFilter(this);