rd_kafka_conf_set_connect_cb

@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.

extern (C) nothrow @nogc
void
rd_kafka_conf_set_connect_cb
(,
int function
(
int sockfd
,
const sockaddr* addr
,,
const char* id
,
void* opaque
)
connect_cb
)

Meta