Examples of ShortBuffer


Examples of freenet.support.ShortBuffer

  }};
 
  public static Message createFNPSSKDataFoundData(long uid, byte[] data, boolean realTime) {
    Message msg = new Message(FNPSSKDataFoundData);
    msg.set(UID, uid);
    msg.set(DATA, new ShortBuffer(data));
    if(realTime) msg.boostPriority();
    return msg;
  }
View Full Code Here

Examples of freenet.support.ShortBuffer

  }};
 
  public static Message createFNPSSKPubKey(long uid, DSAPublicKey pubkey, boolean realTime) {
    Message msg = new Message(FNPSSKPubKey);
    msg.set(UID, uid);
    msg.set(PUBKEY_AS_BYTES, new ShortBuffer(pubkey.asPaddedBytes()));
    if(realTime) msg.boostPriority();
    return msg;
  }
View Full Code Here

Examples of freenet.support.ShortBuffer

  }};
 
  public static Message createFNPOfferKey(Key key, byte[] authenticator) {
    Message msg = new Message(FNPOfferKey);
    msg.set(KEY, key);
    msg.set(OFFER_AUTHENTICATOR, new ShortBuffer(authenticator));
    return msg;
  }
View Full Code Here

Examples of freenet.support.ShortBuffer

  }};
 
  public static Message createFNPGetOfferedKey(Key key, byte[] authenticator, boolean needPubkey, long uid) {
    Message msg = new Message(FNPGetOfferedKey);
    msg.set(KEY, key);
    msg.set(OFFER_AUTHENTICATOR, new ShortBuffer(authenticator));
    msg.set(NEED_PUB_KEY, needPubkey);
    msg.set(UID, uid);
    return msg;
  }
View Full Code Here

Examples of freenet.support.ShortBuffer

  }};
 
  public static Message createProbeRejectStats(long uid, byte[] rejectStats) {
    Message msg = new Message(ProbeRejectStats);
    msg.set(UID, uid);
    msg.set(REJECT_STATS, new ShortBuffer(rejectStats));
    return msg;
  }
View Full Code Here

Examples of freenet.support.ShortBuffer

  }};
 
  public static Message createFNPSwapRequest(long uid, byte[] buf, int htl) {
    Message msg = new Message(FNPSwapRequest);
    msg.set(UID, uid);
    msg.set(HASH, new ShortBuffer(buf));
    msg.set(HTL, htl);
    return msg;
  }
View Full Code Here

Examples of freenet.support.ShortBuffer

  }};
 
  public static Message createFNPSwapReply(long uid, byte[] buf) {
    Message msg = new Message(FNPSwapReply);
    msg.set(UID, uid);
    msg.set(HASH, new ShortBuffer(buf));
    return msg;
  }
View Full Code Here

Examples of freenet.support.ShortBuffer

  }};
 
  public static Message createFNPSwapCommit(long uid, byte[] buf) {
    Message msg = new Message(FNPSwapCommit);
    msg.set(UID, uid);
    msg.set(DATA, new ShortBuffer(buf));
    return msg;
  }
View Full Code Here

Examples of freenet.support.ShortBuffer

  }};
 
  public static Message createFNPSwapComplete(long uid, byte[] buf) {
    Message msg = new Message(FNPSwapComplete);
    msg.set(UID, uid);
    msg.set(DATA, new ShortBuffer(buf));
    return msg;
  }
View Full Code Here

Examples of freenet.support.ShortBuffer

    addField(PEER_LOCATIONS, ShortBuffer.class);
  }};
 
  public static Message createFNPLocChangeNotificationNew(double myLocation, double[] locations) {
    Message msg = new Message(FNPLocChangeNotificationNew);
    ShortBuffer dst = new ShortBuffer(Fields.doublesToBytes(locations));
    msg.set(LOCATION, myLocation);
    msg.set(PEER_LOCATIONS, dst);
   
    return msg;
  }
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.