Package org.stellar.sdk.xdr
Class PeerAddress
java.lang.Object
org.stellar.sdk.xdr.PeerAddress
PeerAddress's original definition in the XDR file is:
struct PeerAddress
{
union switch (IPAddrType type)
{
case IPv4:
opaque ipv4[4];
case IPv6:
opaque ipv6[16];
}
ip;
uint32 port;
uint32 numFailures;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classPeerAddressIp's original definition in the XDR file is: -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static PeerAddressdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PeerAddressfromXdrBase64(String xdr) static PeerAddressfromXdrByteArray(byte[] xdr) getIp()getPort()inthashCode()voidvoidsetNumFailures(Uint32 numFailures) voidtoString()default Stringdefault byte[]
-
Constructor Details
-
PeerAddress
public PeerAddress() -
PeerAddress
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getIp
-
getPort
-
getNumFailures
-
setIp
-
setPort
-
setNumFailures
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-