@brief Set connect callback.
The connect callback is responsible for connecting socket \p sockfd to peer address \p addr. The \p id field contains the broker identifier.
\p connect_cb shall return 0 on success (socket connected) or an error number (errno) on error.
@remark The callback will be called from an internal librdkafka thread.
See Implementation
@brief Set connect callback.
The connect callback is responsible for connecting socket \p sockfd to peer address \p addr. The \p id field contains the broker identifier.
\p connect_cb shall return 0 on success (socket connected) or an error number (errno) on error.
@remark The callback will be called from an internal librdkafka thread.