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
Milestone

Comments

@basavesh
Copy link
Contributor

@basavesh basavesh commented Nov 17, 2019

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

This comment has been minimized.

Copy link
Contributor Author

@basavesh basavesh commented Nov 17, 2019

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

This comment has been minimized.

Copy link
Contributor

@ralight ralight commented Nov 22, 2019

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

@ralight ralight closed this Nov 22, 2019
@ralight ralight added this to the 1.6.8 milestone Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.