-
Notifications
You must be signed in to change notification settings - Fork 66
Message Structure
Eric Voskuil edited this page Apr 17, 2017
·
14 revisions
Libbitcoin messages conform to a uniform message structure implemented using ZeroMQ. ZeroMQ imposes its own structure on messages, described at a high level below.
The fundamental unit of a message is a frame
. A frame is a length-specified set of bytes.
[----frame-----]
A message is a set of frames that make up an envelope
and body
.
[---envelope---]
[-----body-----]
An envelope
may contain addressing frames (route
) and an empty frame (delimiter
).
[----route1----]
[----route2----]
[--------------]
A libbitcoin query message (request and response) is a ZeroMQ message
where the body contains a command
frame and a payload
frame. The envelope is generally hidden from the implementation by ZeroMQ.
[---envelope---]
[---command----]
[---payload----]
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build Server
- Download Server
- Frequently Asked Questions
- General Information
- Client Server Interface
- Configuration Settings
- Tutorials