java.io.Externalizable
, java.io.Serializable
, Streamable
public static class FD_SOCK.FdHeader extends Header implements Streamable
Modifier and Type | Field | Description |
---|---|---|
static byte |
GET_CACHE |
|
static byte |
GET_CACHE_RSP |
|
static byte |
I_HAVE_SOCK |
|
static byte |
SUSPECT |
|
static byte |
WHO_HAS_SOCK |
HDR_OVERHEAD
Constructor | Description |
---|---|
FdHeader() |
|
FdHeader(byte type) |
|
FdHeader(byte type,
java.util.Map<Address,IpAddress> cachedAddrs) |
|
FdHeader(byte type,
java.util.Set<Address> mbrs) |
|
FdHeader(byte type,
Address mbr) |
|
FdHeader(byte type,
Address mbr,
IpAddress sock_addr) |
Modifier and Type | Method | Description |
---|---|---|
void |
readExternal(java.io.ObjectInput in) |
|
void |
readFrom(java.io.DataInputStream 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.
|
java.lang.String |
toString() |
|
static java.lang.String |
type2String(byte type) |
|
void |
writeExternal(java.io.ObjectOutput out) |
|
void |
writeTo(java.io.DataOutputStream out) |
Write the entire state of the current object (including superclasses) to outstream.
|
public static final byte SUSPECT
public static final byte WHO_HAS_SOCK
public static final byte I_HAVE_SOCK
public static final byte GET_CACHE
public static final byte GET_CACHE_RSP
public FdHeader()
public FdHeader(byte type)
public FdHeader(byte type, Address mbr)
public FdHeader(byte type, java.util.Set<Address> mbrs)
public static java.lang.String type2String(byte type)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public int size()
Header
public void writeTo(java.io.DataOutputStream out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public void readFrom(java.io.DataInputStream in) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.InstantiationException
Streamable
readFrom
in interface Streamable
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException
Copyright ? 1998-2008 Bela Ban. All Rights Reserved.