Hi,
I am new to amqp and qpid-proton. I am trying to setup a node for amqp
receive and send in node-red.
I have used c example in qpid proton 0.7 to send message to cloud. There I
have used amqp address as a string
ex:
char * address = (char *)
"amqps://testPolicy:[email protected]/cloudgatetest";
and set address using
message = pn_message();
pn_message_set_address(message, address);
How can I do it with new library qpid-proton 0.29.0.? in the example
provided the fields given are like
int main(int argc, char **argv) {
struct app_data_t app = {0};
char addr[PN_MAX_ADDR];
pn_transport_t *t = NULL;
int err;
app.container_id = argv[0]; /* Should be unique */
app.host = (argc > 1) ? argv[1] : "";
app.port = (argc > 2) ? argv[2] : "amqp";
app.amqp_address = (argc > 3) ? argv[3] : "examples";
app.message_count = (argc > 4) ? atoi(argv[4]) : 10;
app.user = (argc > 5) ? argv[5] : 0 ;
app.pass = (argc > 6) ? argv[6] : 0 ;
app.proactor = pn_proactor();
pn_proactor_addr(addr, sizeof(addr), app.host, app.port);
Please help.
I am trying to send message to azure cloud.
--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]