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: 406 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: 406 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: 406 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: 406 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?