public interface Peer
Modifier and Type | Method and Description |
---|---|
InetAddress |
getInetAddress() |
PeerOptions |
getOptions() |
Optional<PeerId> |
getPeerId() |
int |
getPort() |
boolean |
isPortUnknown() |
InetAddress getInetAddress()
boolean isPortUnknown()
getPort()
int getPort()
InetPeer.UNKNOWN_PORT
, if it's not known yet
(e.g. when the connection is incoming and the remote side hasn't
yet communicated to us its' listening port via extended handshake)PeerOptions getOptions()
Copyright © 2016–2021. All rights reserved.