com.google.bitcoin.core
Class Message
java.lang.Object
com.google.bitcoin.core.Message
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AddressMessage, Block, GetBlocksMessage, ListMessage, PeerAddress, Ping, Transaction, TransactionInput, TransactionOutPoint, TransactionOutput, UnknownMessage, VersionAck, VersionMessage
public abstract class Message
- extends Object
- implements Serializable
A Message is a data structure that can be serialized/deserialized using both the BitCoin proprietary serialization
format and built-in Java object serialization. Specific types of messages that are used both in the block chain,
and on the wire, are derived from this class.
This class is not useful for library users. If you want to talk to the network see the Peer
class.
- See Also:
- Serialized Form
Constructor Summary |
protected |
Message()
This exists for the Java serialization framework to use only. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_SIZE
public static final int MAX_SIZE
- See Also:
- Constant Field Values
offset
protected transient int offset
cursor
protected transient int cursor
bytes
protected transient byte[] bytes
protocolVersion
protected transient int protocolVersion
params
protected NetworkParameters params
Message
protected Message()
- This exists for the Java serialization framework to use only.
bitcoinSerialize
public byte[] bitcoinSerialize()
Copyright © 2011. All Rights Reserved.