org.tron.p2p.P2pEventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libp2p Show documentation
Show all versions of libp2p Show documentation
libp2p is a p2p network SDK implemented in java language.
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