Try PubSub+

Solace Messaging C API and ATM8 message

cjasniewcjasniew Member Posts: 15

Is there any available C/C++ library to accommodate ATM8 message format?
I need to send my message as binary ATM8.

Tagged:

Comments

  • TomFTomF Member, Employee Posts: 233 Solace Employee

    Hi @cjasniew, I'm not aware of ATM8. Are there any resources that describe it that you could point me to?

  • cjasniewcjasniew Member Posts: 15

    Do you have any examples of Solace working with Google Protobuf forming and sending a message?

  • TomFTomF Member, Employee Posts: 233 Solace Employee

    @cjasniew I've worked on a couple with customers. Nothing I can share, though, unfortunately.

  • cjasniewcjasniew Member Posts: 15

    How to get message len for solClient_opaqueMsg_pt msg_p?

  • TomFTomF Member, Employee Posts: 233 Solace Employee

    The memory for message buffers accessed by msg_p is managed by the API. If you're trying to access the message payload, you need solClient_msg_getBinaryAttachmentPtr, which returns both the pointer and the size of the payload.

  • cjasniewcjasniew Member Posts: 15

    I did and it worked. Thanks.
    When i link my Solace example program with protobuf libprotobuf.a it crashes in CreateFlow(). Any ideas?

  • TomFTomF Member, Employee Posts: 233 Solace Employee

    Odd - the only difference being that you linked libprotobuf.a? The only thing I can suggest off the top of my head is to check you're linking the right version of the protobuf library - have you used this version with other code?

Sign In or Register to comment.