Package net.tomp2p.p2p.builder

Examples of net.tomp2p.p2p.builder.BroadcastBuilder.udp()


                        public void operationComplete(final FutureChannelCreator future) throws Exception {
                            if (future.isSuccess()) {
                                BroadcastBuilder broadcastBuilder = new BroadcastBuilder(peer, messageKey);
                                broadcastBuilder.dataMap(dataMap);
                                broadcastBuilder.hopCounter(hopCounter + 1);
                                broadcastBuilder.udp(isUDP);
                                FutureResponse futureResponse = peer.broadcastRPC().send(peerAddress, broadcastBuilder,
                                        future.channelCreator(), broadcastBuilder);
                                LOG.debug("1st broadcast to {}", peerAddress);
                                Utils.addReleaseListener(future.channelCreator(), futureResponse);
                            } else {
View Full Code Here


                        PeerAddress randomAddress = list.remove(rnd.nextInt(list.size()));
                       
                        BroadcastBuilder broadcastBuilder = new BroadcastBuilder(peer, messageKey);
                        broadcastBuilder.dataMap(dataMap);
                        broadcastBuilder.hopCounter(hopCounter + 1);
                        broadcastBuilder.udp(isUDP);
                       
                        futures[i] = peer.broadcastRPC().send(randomAddress,
                                broadcastBuilder, future.channelCreator(), broadcastBuilder);
                        LOG.debug("2nd broadcast to {}", randomAddress);
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.