|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Packet.PacketTypes>
me.edwards.des.net.packet.Packet.PacketTypes
public static enum Packet.PacketTypes
Enumerates all the types of Packets and their ID's.
Created on: Jan 4, 2015 at 10:50:45 AM
| Enum Constant Summary | |
|---|---|
ADDR
Address Packet Type, used to send information about all known peers |
|
BALLOT
Ballot Packet Type, used to transfer ballot information between nodes |
|
BLOCK
Block Packet Type, used to transfer block information between nodes |
|
GETADDR
Get Address Packet Type, used to request address information |
|
GETBLOCKS
Get Blocks Packet Type, used to request blocks |
|
GETDATA
Get Data Packet Type, used to request a particular piece of data |
|
INV
Inventory Packet Type, advertises knowledge of a particular piece of data |
|
INVALID
Invalid Packet Type, used for internal purposes |
|
NOTFOUND
Not Found Packet Type, signals that a specific piece of data that was requested could not be found |
|
PING
Ping Packet Type, used to ensure that connections are alive |
|
PONG
Pong Packet Type, used to ensure that connections are alive |
|
VERACK
Version Acknowledge Packet Type, used to complete handshake protocol |
|
VERSION
Version Packet Type, used for handshake protocol |
|
| Field Summary | |
|---|---|
private byte |
id
|
| Method Summary | |
|---|---|
byte |
getID()
Returns the Packet Type ID |
static Packet.PacketTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Packet.PacketTypes[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Packet.PacketTypes INVALID
public static final Packet.PacketTypes PING
PacketPingpublic static final Packet.PacketTypes PONG
PacketPongpublic static final Packet.PacketTypes VERSION
PacketVersionpublic static final Packet.PacketTypes VERACK
PacketVerackpublic static final Packet.PacketTypes GETADDR
PacketGetAddrpublic static final Packet.PacketTypes ADDR
PacketAddrpublic static final Packet.PacketTypes INV
PacketInvpublic static final Packet.PacketTypes NOTFOUND
PacketNotFoundpublic static final Packet.PacketTypes GETDATA
PacketGetDatapublic static final Packet.PacketTypes BALLOT
PacketBallotpublic static final Packet.PacketTypes BLOCK
PacketBlockpublic static final Packet.PacketTypes GETBLOCKS
PacketGetBlocks| Field Detail |
|---|
private byte id
| Method Detail |
|---|
public static Packet.PacketTypes[] values()
for (Packet.PacketTypes c : Packet.PacketTypes.values()) System.out.println(c);
public static Packet.PacketTypes valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic byte getID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||