}
private FutureWrappedBootstrap<FutureBootstrap> broadcast0() {
final FutureWrappedBootstrap<FutureBootstrap> result = new FutureWrappedBootstrap<FutureBootstrap>();
final FuturePing futurePing = peer.ping().broadcast().port(portUDP).start();
futurePing.addListener(new BaseFutureAdapter<FuturePing>() {
@Override
public void operationComplete(final FuturePing future) throws Exception {
if (future.isSuccess()) {
if (bootstrapTo != null && bootstrapTo.size() > 0) {
logger.info("you added peers to bootstrapTo. However with broadcast we found our own peers.");