public class PingRsp extends java.lang.Object implements java.io.Serializable, Streamable
Modifier and Type | Field and Description |
---|---|
Address |
coord_addr |
boolean |
is_server |
Address |
own_addr |
Constructor and Description |
---|
PingRsp() |
PingRsp(Address own_addr,
Address coord_addr,
boolean is_server) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Address |
getAddress() |
Address |
getCoordAddress() |
int |
hashCode() |
boolean |
isCoord() |
boolean |
isServer() |
void |
readFrom(java.io.DataInputStream instream)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
size() |
java.lang.String |
toString() |
void |
writeTo(java.io.DataOutputStream outstream)
Write the entire state of the current object (including superclasses) to outstream.
|
public Address own_addr
public Address coord_addr
public boolean is_server
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isCoord()
public int size()
public Address getAddress()
public Address getCoordAddress()
public boolean isServer()
public java.lang.String toString()
toString
in class java.lang.Object
public void writeTo(java.io.DataOutputStream outstream) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public void readFrom(java.io.DataInputStream instream) 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.