Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async direct msg requests #30

Open
sshanks-kx opened this issue Mar 27, 2020 · 3 comments
Open

Async direct msg requests #30

sshanks-kx opened this issue Mar 27, 2020 · 3 comments
Assignees

Comments

@sshanks-kx
Copy link
Collaborator

Try async requests to see how the replies arrive

From 'solClient_session_sendRequest' doc:
"
When the application needs to do a blocking request (that is, the timeout parameter is non-zero), the replyTo destination must be a topic that the application has subscribed to for Direct messages. If the replyTo destination is set to an unsubscribed topic, a call to solClient_session_sendRequest() will block until the amount of time set for the timeout parameter expires and then return SOLCLIENT_INCOMPLETE with subcode SOLCLIENT_SUBCODE_TIMEOUT.

If the timeout parameter is zero, this function returns immediately with SOLCLIENT_IN_PROGRESS upon successful buffering of the message for transmission. Any response generated by the destination client is delivered to the replyTo destination as a receive message callback with the response attribute set - solClient_msg_isReplyMsg() returns true. It is entirely within the responsibility of the application to manage asynchronous responses.
"

@sshanks-kx sshanks-kx self-assigned this Mar 27, 2020
@sshanks-kx
Copy link
Collaborator Author

Running see return code '2' (SOLCLIENT_IN_PROGRESS)
https://docs.solace.com/API-Developer-Online-Ref-Documentation/net/html/4eaedb16-3901-03fb-e300-7a327dc5495f.htm

Don't see any callback firing/etc with replymsg as yet.

@sshanks-kx
Copy link
Collaborator Author

May require an existing subscription, with destination passed in with the call e.g.

  • create subscription to Q/reply
  • call sendrequest with timeout 0 and topic 'Q/reply' in which to set solClient_msg_setReplyTo on sending msg
    Will check...

@sshanks-kx
Copy link
Collaborator Author

To change existing method to make is sync only ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant