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

Documentation issue - mosquitto_connect_srv #1499

Closed
basavesh opened this issue Nov 17, 2019 · 2 comments
Closed

Documentation issue - mosquitto_connect_srv #1499

basavesh opened this issue Nov 17, 2019 · 2 comments
Milestone

Comments

@basavesh
Copy link
Contributor

I'm not able to understand the difference between mosquitto_connect_bind_async vs. mosquitto_connect_srv what does srv mean in mosquitto_connect_srv?

srv doesn't have a port parameter.

@basavesh
Copy link
Contributor Author

This is with respect to information present in https://mosquitto.org/api/files/mosquitto-h.html

Connect to an MQTT broker. This is a non-blocking call. If you use mosquitto_connect_async your client must use the threaded interface mosquitto_loop_start. If you need to use mosquitto_loop, you must use mosquitto_connect to connect the client.
This extends the functionality of mosquitto_connect_async by adding the bind_address parameter. Use this function if you need to restrict network communication over a particular interface.
May be called before or after mosquitto_loop_start.

ralight added a commit that referenced this issue Nov 22, 2019
Closes #1499. Thanks to Basavesh Shivakumar.
@ralight
Copy link
Contributor

ralight commented Nov 22, 2019

Thank you, I've now added some guidance on that function.

@ralight ralight closed this as completed Nov 22, 2019
@ralight ralight added this to the 1.6.8 milestone Nov 22, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants