Package freenet.io.comm

Examples of freenet.io.comm.Message


          data.close();
        }
      }
    };

    Message msg = DMT.createUOMSendingRevocation(uid, length, updateManager.getRevocationURI().toString());

    try {
      source.sendAsync(msg, new AsyncMessageCallback() {

        @Override
View Full Code Here


      // Impossible
    }
  }

  private void cancelSend(PeerNode source, long uid) {
    Message msg = DMT.createFNPBulkReceiveAborted(uid);
    try {
      source.sendAsync(msg, null, updateManager.ctr);
    } catch(NotConnectedException e1) {
      // Ignore
    }
View Full Code Here

  }

  public void handleRequestJar(Message m, final PeerNode source) {
    final String name = "main";
   
    Message msg;
    final BulkTransmitter bt;
    final FileRandomAccessBuffer raf;

    if (source.isOpennet() && updateManager.dontAllowUOM()) {
      Logger.normal(this, "Peer " + source
View Full Code Here

  void broadcastUOMAnnouncesOld() {
    boolean mainJarAvailable = transitionMainJarFetcher == null ? false
        : transitionMainJarFetcher.fetched();
    boolean extJarAvailable = transitionExtJarFetcher == null ? false
        : transitionExtJarFetcher.fetched();
    Message msg;
    if(!(mainJarAvailable && extJarAvailable)) return;
    synchronized (broadcastUOMAnnouncesSync) {
      if(broadcastUOMAnnouncesOld && !hasBeenBlown) return;
      broadcastUOMAnnouncesOld = true;
      msg = getOldUOMAnnouncement();
View Full Code Here

  }

  void broadcastUOMAnnouncesNew() {
    if(logMINOR) Logger.minor(this, "Broadcast UOM announcements (new)");
    long size = canAnnounceUOMNew();
    Message msg;
    if(size <= 0 && !hasBeenBlown) return;
    synchronized (broadcastUOMAnnouncesSync) {
      if(broadcastUOMAnnouncesNew && !hasBeenBlown) return;
      broadcastUOMAnnouncesNew = true;
      msg = getNewUOMAnnouncement(size);
View Full Code Here

TOP

Related Classes of freenet.io.comm.Message

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.