Package convex.net
Class ChallengeRequest
java.lang.Object
convex.net.ChallengeRequest
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ChallengeRequest
create
(AccountKey peerKey) static ChallengeRequest
create
(AccountKey peerKey, int timeoutSeconds) getToken()
boolean
long
send
(Connection connection, Peer peer) Sends out a single challenge to the remote peer.
-
Field Details
-
peerKey
-
timeout
protected long timeout -
token
-
sendHash
-
-
Method Details
-
create
-
create
-
send
Sends out a single challenge to the remote peer.- Parameters:
connection
- Connectionpeer
- This Peer- Returns:
- ID of message sent, or negative value if sending fails
-
getPeerKey
-
getToken
-
getSendHash
-
isTimedout
public boolean isTimedout()
-