Package freenet.clients.fcp

Source Code of freenet.clients.fcp.SendingToNetworkMessage

package freenet.clients.fcp;

import freenet.node.Node;
import freenet.support.SimpleFieldSet;

public class SendingToNetworkMessage extends FCPMessage {

  public static final String NAME = "SendingToNetwork";
  final String identifier;
  final boolean global;
 
  public SendingToNetworkMessage(String id, boolean global2) {
    this.identifier = id;
    this.global = global2;
  }

  @Override
  public SimpleFieldSet getFieldSet() {
    SimpleFieldSet fs = new SimpleFieldSet(true);
    fs.putSingle("Identifier", identifier);
    fs.put("Global", global);
    return fs;
  }

  @Override
  public String getName() {
    return NAME;
  }

  @Override
  public void run(FCPConnectionHandler handler, Node node)
      throws MessageInvalidException {
    // Not possible
  }

}
TOP

Related Classes of freenet.clients.fcp.SendingToNetworkMessage

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.