Testing guaranteed queue based message delivery over flow in C
I have a C++ application using solace C API to read guaranteed message over a flow, with queue based message delivery. Currently I connect to broker to test my application, but I would like to add some local tests, that I can run on my machine to test the complete flow at my end.
I need to have a message publisher, which can publish messages on queue like that. I found one HelloWorldQueuePub.c example on C documentation page to be what I need but I am unable to get them to work.
I am assuming these two are supposed to work together, Intro/HelloWorldQueuePub.c
Intro/HelloWorldQueueSub.c. But when I try to run them I am seeing some connection errors. How are the two applications supposed to be run together?
$ ./HelloWorldQueuePub tcp:127.0.0.1:55555 vpn_ user_name queue_name SDK NOTICE Fri Dec 03 14:40:05.883 2021 solClient.c:10681 (7f0bfb541700) Session '(c0,s1)_vpn_' error attempting transport connection, client name 'XXXXXX/38148/00000001/TG-HrIQ754', VPN name 'vpn_', peer host 'tcp:127.0.0.1:55555' address 'IP 127.0.0.1', connection 'tcp_TxRx' local address 'IP 127.0.0.1:4234' SDK NOTICE Fri Dec 03 14:40:05.884 2021 solClient.c:10209 (7f0bfb541700) Protocol or communication error when attempting to login for session '(c0,s1)_vpn_'; are session HOST and PORT correct? client name 'XXXXXX/38148/00000001/TG-HrIQ754', VPN name 'vpn_', peer host 'tcp:127.0.0.1:55555' address 'IP 127.0.0.1', connection 'tcp_TxRx' local address 'IP 127.0.0.1:4234'