channel = newTribesChannel();
}
private Channel newTribesChannel() {
McastService membership = new McastService();
// default multicast address is 228.0.0.4
// default multicast port is 45564
Integer customPort = Integer.getInteger("wjc-multicast-port");
if (customPort != null)
membership.setPort(customPort.intValue());
String customAddress = System.getProperty("wjc-multicast-address");
if (customAddress != null)
membership.setAddress(customAddress);
ReceiverBase receiver = new NioReceiver();
receiver.setAddress("auto");
ReplicationTransmitter sender = new ReplicationTransmitter();