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
Modifier and TypeClassDescriptionstatic class
static class
PeerAddressIp's original definition in the XDR file is: -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static PeerAddress
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static PeerAddress
fromXdrBase64
(String xdr) static PeerAddress
fromXdrByteArray
(byte[] xdr) getIp()
getPort()
int
hashCode()
void
void
setNumFailures
(Uint32 numFailures) void
toString()
default String
default 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
-