Class Message


  • public class Message
    extends Object
    Defines all the message types that are exchanged between master and slave.

    Message format:

     1 byte type
     3 bytes message size (size of data to follow) = n+4
     n bytes data
     4 bytes CRC.
     

    This is the same structure used in the replication file to be able to play it directly over the network.

    The replication file contains only STREAM_INFO and DATA messages (and we call them transactions)