public static class RELAY2.Relay2Header extends Header
Modifier and Type | Field and Description |
---|---|
static byte |
DATA |
protected Address |
final_dest |
static byte |
HOST_UNREACHABLE |
protected Address |
original_sender |
static byte |
SITE_UNREACHABLE |
protected byte |
type |
Constructor and Description |
---|
Relay2Header() |
Relay2Header(byte type,
Address final_dest,
Address original_sender) |
Modifier and Type | Method and Description |
---|---|
void |
readFrom(DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
size()
To be implemented by subclasses.
|
String |
toString() |
protected static String |
typeToString(byte type) |
void |
writeTo(DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte DATA
public static final byte SITE_UNREACHABLE
public static final byte HOST_UNREACHABLE
protected byte type
protected Address final_dest
protected Address original_sender
public int size()
Header
public void writeTo(DataOutput out) throws Exception
Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
Exception
protected static String typeToString(byte type)
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.