Examples of maxPermitsTCP()


Examples of net.tomp2p.connection.ChannelClientConfiguration.maxPermitsTCP()

        try {
          Number160 peerId = Number160.createHash(clientId);
          PeerMapConfiguration pmc = new PeerMapConfiguration(peerId).peerNoVerification();
          PeerMap pm = new PeerMap(pmc);
          ChannelClientConfiguration cc = PeerBuilder.createDefaultChannelClientConfiguration();
          cc.maxPermitsTCP(100);
          cc.maxPermitsUDP(100);
            peer = new PeerBuilder(peerId).channelClientConfiguration(cc).ports(clientPort).peerMap(pm).start();
            PeerAddress masterNodeAddress = new PeerAddress(Number160.createHash(seedNodeId), seedNodeIP, seedNodePort,
                                                            seedNodePort);
            FutureDiscover futureDiscover = peer.discover().peerAddress(masterNodeAddress).start();
View Full Code Here

Examples of net.tomp2p.connection.ChannelClientConfiguration.maxPermitsTCP()

  public static ChannelClientConfiguration createDefaultChannelClientConfiguration() {
    ChannelClientConfiguration channelClientConfiguration = new ChannelClientConfiguration();
    channelClientConfiguration.bindings(new Bindings());
    channelClientConfiguration.maxPermitsPermanentTCP(MAX_PERMITS_PERMANENT_TCP);
    channelClientConfiguration.maxPermitsTCP(MAX_PERMITS_TCP);
    channelClientConfiguration.maxPermitsUDP(MAX_PERMITS_UDP);
    channelClientConfiguration.pipelineFilter(new DefaultPipelineFilter());
    channelClientConfiguration.signatureFactory(new DSASignatureFactory());
    channelClientConfiguration.senderTCP(new InetSocketAddress(0).getAddress());
    channelClientConfiguration.senderUDP(new InetSocketAddress(0).getAddress());
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.