Package org.jmule.core.edonkey.packet.tag

Examples of org.jmule.core.edonkey.packet.tag.TagList


      data.put(addData.getHashSet().get(a));
      data.position(0);
      fileChannel.write(data);
    }
   
    TagList tagList = addData.getTagList();
   
    data = Misc.getByteBuffer(4);
    data.putInt(tagList.size());
    data.position(0);
    fileChannel.write(data);
   
    for(Tag tag : tagList) {
      ByteBuffer raw_tag = tag.getAsByteBuffer();
View Full Code Here


      //Read tag count
      data = Misc.getByteBuffer(4);
      fileChannel.read(data);
      int tagCount = data.getInt(0);
      //Load Tags
      this.tagList = new TagList();
     
      for(int i = 0 ; i < tagCount; i++) {
       
        Tag tag = TagScanner.scanTag(fileChannel);
        if (tag != null)
View Full Code Here

      fileChannel.read(data);
      long serverCount = Convert.intToLong(data.getInt(0));
     
      for(long i = 0; i < serverCount; i++) {
               
        TagList tagList = new TagList();
        //Read server IP
        data = Misc.getByteBuffer(4);
        fileChannel.read(data);
       
        String remonteAddress = Convert.IPtoString(data.array());
       
        //Read server port
        data = Misc.getByteBuffer(2);
        fileChannel.read(data);
       
        int remontePort = (Convert.shortToInt(data.getShort(0)));
       
        //Read TagList count
        data = Misc.getByteBuffer(4);
        fileChannel.read(data);
       
        int tagCount = data.getInt(0);
               
        //Load tags....
        for(int j = 0; j<tagCount; j++) {
          Tag tag = TagScanner.scanTag(fileChannel);
          if (tag != null)
            tagList.addTag(tag);
        }
       
        ip_list.add(remonteAddress);
        port_list.add(remontePort);
        tag_list.add(tagList);
View Full Code Here

TOP

Related Classes of org.jmule.core.edonkey.packet.tag.TagList

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.