com.google.bitcoin.core
Class PeerAddress
java.lang.Object
com.google.bitcoin.core.Message
com.google.bitcoin.core.PeerAddress
- All Implemented Interfaces:
- Serializable
public class PeerAddress
- extends Message
A PeerAddress holds an IP address and port number representing the network location of
a peer in the BitCoin P2P network. It exists primarily for serialization purposes.
- See Also:
- Serialized Form
PeerAddress
public PeerAddress(NetworkParameters params,
byte[] payload,
int offset,
int protocolVersion)
throws ProtocolException
- Throws:
ProtocolException
PeerAddress
public PeerAddress(InetAddress addr,
int port,
int protocolVersion)
bitcoinSerializeToStream
public void bitcoinSerializeToStream(OutputStream stream)
throws IOException
- Description copied from class:
Message
- Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
- Throws:
IOException
parse
protected void parse()
throws ProtocolException
- Throws:
ProtocolException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.