Package org.stellar.sdk.xdr
Class Hello
java.lang.Object
org.stellar.sdk.xdr.Hello
Hello's original definition in the XDR file is:
struct Hello { uint32 ledgerVersion; uint32 overlayVersion; uint32 overlayMinVersion; Hash networkID; string versionStr<100>; int listeningPort; NodeID peerID; AuthCert cert; uint256 nonce; };
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Hello.HelloBuilder
builder()
static Hello
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static Hello
fromXdrBase64
(String xdr) static Hello
fromXdrByteArray
(byte[] xdr) getCert()
getNonce()
int
hashCode()
void
void
setLedgerVersion
(Uint32 ledgerVersion) void
setListeningPort
(Integer listeningPort) void
setNetworkID
(Hash networkID) void
void
setOverlayMinVersion
(Uint32 overlayMinVersion) void
setOverlayVersion
(Uint32 overlayVersion) void
void
setVersionStr
(XdrString versionStr) toString()
default String
default byte[]
-
Constructor Details
-
Hello
public Hello() -
Hello
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getLedgerVersion
-
getOverlayVersion
-
getOverlayMinVersion
-
getNetworkID
-
getVersionStr
-
getListeningPort
-
getPeerID
-
getCert
-
getNonce
-
setLedgerVersion
-
setOverlayVersion
-
setOverlayMinVersion
-
setNetworkID
-
setVersionStr
-
setListeningPort
-
setPeerID
-
setCert
-
setNonce
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-