All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tron.p2p.P2pEventHandler Maven / Gradle / Ivy

The newest version!
package org.tron.p2p;

import java.util.Set;
import lombok.Getter;
import org.tron.p2p.connection.Channel;

public abstract class P2pEventHandler {

  @Getter
  protected Set messageTypes;

  public void onConnect(Channel channel) {
  }

  public void onDisconnect(Channel channel) {
  }

  public void onMessage(Channel channel, byte[] data) {
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy