[#CZMQPublishRawBlockNotifier]
= CZMQPublishRawBlockNotifier
:mrdocs:

Publishes the serialized bytes of each new active chain tip block&period;

== Synopsis

Declared in `&lt;zmq&sol;zmqpublishnotifier&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CZMQPublishRawBlockNotifier
    : public xref:CZMQAbstractPublishNotifier.adoc[CZMQAbstractPublishNotifier]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:CZMQAbstractPublishNotifier.adoc[CZMQAbstractPublishNotifier]`
| Base class for ZMQ publisher notifiers that send multipart messages to subscribers&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CZMQPublishRawBlockNotifier/2constructor.adoc[`CZMQPublishRawBlockNotifier`]         [.small]#[constructor]#
| Construct the notifier with a callback that reads a block&apos;s raw bytes&period;
| xref:CZMQAbstractNotifier/GetAddress.adoc[`GetAddress`] 
| Get the ZMQ endpoint address this notifier publishes to&period;
| xref:CZMQAbstractNotifier/GetOutboundMessageHighWaterMark.adoc[`GetOutboundMessageHighWaterMark`] 
| Get the configured outbound message high&hyphen;water mark&period;
| xref:CZMQAbstractNotifier/GetType.adoc[`GetType`] 
| Get the notifier type name&period;
| xref:CZMQAbstractPublishNotifier/Initialize.adoc[`Initialize`]  [.small]#[virtual]#
| Initialize the publisher, binding or connecting its socket&period;
| xref:CZMQPublishRawBlockNotifier/NotifyBlock.adoc[`NotifyBlock`]  [.small]#[virtual]#
| Publish the serialized bytes of the new active tip block&period;
| xref:CZMQAbstractNotifier/NotifyBlockConnect.adoc[`NotifyBlockConnect`]  [.small]#[virtual]#
| Notifies of every block connection&period;
| xref:CZMQAbstractNotifier/NotifyBlockDisconnect.adoc[`NotifyBlockDisconnect`]  [.small]#[virtual]#
| Notifies of every block disconnection&period;
| xref:CZMQAbstractNotifier/NotifyTransaction.adoc[`NotifyTransaction`]  [.small]#[virtual]#
| Notifies of transactions added to mempool or appearing in blocks&period;
| xref:CZMQAbstractNotifier/NotifyTransactionAcceptance.adoc[`NotifyTransactionAcceptance`]  [.small]#[virtual]#
| Notifies of every mempool acceptance&period;
| xref:CZMQAbstractNotifier/NotifyTransactionRemoval.adoc[`NotifyTransactionRemoval`]  [.small]#[virtual]#
| Notifies of every mempool removal, except inclusion in blocks&period;
| xref:CZMQAbstractPublishNotifier/SendZmqMessage.adoc[`SendZmqMessage`] 
| Send a multipart ZMQ message (command, data, sequence number)&period;
| xref:CZMQAbstractNotifier/SetAddress.adoc[`SetAddress`] 
| Set the ZMQ endpoint address this notifier publishes to&period;
| xref:CZMQAbstractNotifier/SetOutboundMessageHighWaterMark.adoc[`SetOutboundMessageHighWaterMark`] 
| Set the outbound message high&hyphen;water mark, ignoring negative values&period;
| xref:CZMQAbstractNotifier/SetType.adoc[`SetType`] 
| Set the notifier type name&period;
| xref:CZMQAbstractPublishNotifier/Shutdown.adoc[`Shutdown`]  [.small]#[virtual]#
| Shut down the publisher and close its socket&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CZMQAbstractNotifier/Create.adoc[`Create`] 
| Factory helper that constructs a notifier of the concrete type `T&period;`
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CZMQAbstractNotifier/DEFAULT_ZMQ_SNDHWM.adoc[`DEFAULT&lowbar;ZMQ&lowbar;SNDHWM`] 
| Default ZMQ send high&hyphen;water mark (maximum queued outbound messages)&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CZMQAbstractNotifier/address.adoc[`address`] 
| The ZMQ endpoint address published to&period;
| xref:CZMQAbstractNotifier/outbound_message_high_water_mark.adoc[`outbound&lowbar;message&lowbar;high&lowbar;water&lowbar;mark`] 
| Outbound message high&hyphen;water mark (SNDHWM)&period;
| xref:CZMQAbstractNotifier/psocket.adoc[`psocket`] 
| The ZMQ publisher socket, or nullptr before initialization&period;
| xref:CZMQAbstractNotifier/type.adoc[`type`] 
| The notifier type name&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
