eclipse / paho.mqtt.cpp

Other
1.01k stars 432 forks source link

Add getter for the connect_options object (connOpts_) in async_client #473

Closed gary-metalle-rvl closed 3 months ago

gary-metalle-rvl commented 8 months ago

It would be nice to have a const (read-only) getter for the connOpts_ member variable so as to be able to determine what the connection settings are for a broker connection.

I've mentioned async_client but I'm guessing this is just as valid for other flavoured clients that have this member too.

fpagliughi commented 3 months ago

To be thread-safe it has to return a full copy. But it's in there.