Package org.jmule.core.jkad

Examples of org.jmule.core.jkad.ClientID


      int source_count = data.getInt(0);
   
      for(int j = 0;j<source_count;j++) {
        data = getByteBuffer(16);
        channel.read(data);
        ClientID client_id = new ClientID(data.array());

        data = getByteBuffer(8);
        channel.read(data);
        long creation_time = data.getLong(0);
        data = getByteBuffer(1);
View Full Code Here


     
      for(int i = 1 ; i <= totalContacts ; i++) {
       
        data = getByteBuffer(16);
        channel.read(data);
        ClientID contact_id = new ClientID(data.array());
        data = getByteBuffer(4);
        channel.read(data);
        byte[] ip = data.array().clone();
        //ip = Convert.reverseArray(ip);
        IPAddress address = new IPAddress(ip);
View Full Code Here

    File file = new File(KAD_ID_FILE);
    if (!file.exists()) return ;
    FileChannel input_channel = new FileInputStream(file).getChannel();
    ByteBuffer data = Misc.getByteBuffer(16);
    input_channel.read(data);
    client_id = new ClientID(data.array());
  }
View Full Code Here

TOP

Related Classes of org.jmule.core.jkad.ClientID

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.