Package net.tomp2p.relay.android

Examples of net.tomp2p.relay.android.MessageBufferConfiguration


    this.relays = new ArrayList<PeerNAT>(relayPeers);
    this.mobiles = new ArrayList<PeerNAT>(mobilePeers);
    this.queries = new ArrayList<QueryNode>(queryPeers);
   
    bufferConfig = new MessageBufferConfiguration().bufferAgeLimit(MAX_BUFFER_AGE).bufferCountLimit(MAX_MESSAGE_NUM)
        .bufferSizeLimit(MAX_BUFFER_SIZE).gcmSendRetries(GCM_SEND_RETIES);
  }
View Full Code Here


  public PeerNAT start() {
    ConnectionConfiguration connectionConfiguration = new DefaultConnectionConfiguration();

    if(bufferConfig == null) {
      bufferConfig = new MessageBufferConfiguration();
    }
   
    final NATUtils natUtils = new NATUtils();
    final RconRPC rconRPC = new RconRPC(peer);
    final RelayRPC relayRPC = new RelayRPC(peer, rconRPC, bufferConfig, connectionConfiguration);
View Full Code Here

 
  public TestRelay(RelayType relayType) {
    this.relayType = relayType;
   
    // create objects required for android
    this.androidConfig = new MessageBufferConfiguration().bufferCountLimit(1);
    this.gcmServerCredentials = new GCMServerCredentials().registrationId("dummy-registration-id").senderAuthenticationKey("dummy-auth-key").senderId(12345l);
  }
View Full Code Here

TOP

Related Classes of net.tomp2p.relay.android.MessageBufferConfiguration

Copyright © 2018 www.massapicom. 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.