Skip to end of metadata
Go to start of metadata


Using libstomp is as simple as:

  1. Initializing APR
  2. Establishing a stomp connection
  3. Reading and writting simple stomp frames
  4. Disconnecting
  5. APR shutdown

See the libstomp Examples

Initializing APR

The following snipplet of code initializes the APR runtime.

Establish the Stomp Connection

Here's what's required to establish the Stomp connection. Notice that an APR memory pool is used to allocate the connection.

Reading and Writting Simple Stomp Frames

A Stomp frame is made up of 3 parts: a command, a set of header properties, and a body. Here's how you can initialize the frame and write it to the connection.

To read a Stomp frame from the connection:


Closing a connection that was previously created with stomp_connect is done with:

APR Shutdown

Shutting down APR is simply done using:

  • No labels