com.google.bitcoin.core
Class Message

java.lang.Object
  extended by 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

Field Summary
protected  byte[] bytes
           
protected  int cursor
           
static int MAX_SIZE
           
protected  int offset
           
protected  NetworkParameters params
           
protected  int protocolVersion
           
 
Constructor Summary
protected Message()
          This exists for the Java serialization framework to use only.
 
Method Summary
 byte[] bitcoinSerialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Message

protected Message()
This exists for the Java serialization framework to use only.

Method Detail

bitcoinSerialize

public byte[] bitcoinSerialize()


Copyright © 2011. All Rights Reserved.