🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

Solace Messaging C API and ATM8 message

cjasniew
cjasniew Member Posts: 15

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

Comments

  • TomF
    TomF Member, Employee Posts: 412 Solace Employee

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

  • cjasniew
    cjasniew Member Posts: 15

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

  • TomF
    TomF Member, Employee Posts: 412 Solace Employee

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

  • cjasniew
    cjasniew Member Posts: 15

    How to get message len for solClient_opaqueMsg_pt msg_p?

  • TomF
    TomF Member, Employee Posts: 412 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.

  • cjasniew
    cjasniew 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?

  • TomF
    TomF Member, Employee Posts: 412 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?