Package com.mattibal.meshnet.NetworkTree

Examples of com.mattibal.meshnet.NetworkTree.Node


 
 
  // Incoming packet handlers
 
  private void onDataToBase(DataToBase data){
    Node node = null;
    if(newTree != null){
      node = newTree.getNodeFromAddress(data.getSourceAddress());
    }
    if(node==null && activeTree != null){
      node = activeTree.getNodeFromAddress(data.getSourceAddress());
    }
    if(node!=null){
      ILayer4 layer4 = node.getLayer4();
      if(layer4 == null){
        layer4 = new Layer4SimpleRpc(node, this);
        node.setLayer4AndAssigned(layer4);
      }
      layer4.onPacketReceived(data);
    }
  }
View Full Code Here

TOP

Related Classes of com.mattibal.meshnet.NetworkTree.Node

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.