nng icon indicating copy to clipboard operation
nng copied to clipboard

Consultation on compatibility issues

Open wsxjbupt opened this issue 3 years ago • 0 comments

In the past, we used nanomsg as a tool for interprocess communication. Run the following command to check whether the nanomsg channel of the peer process is initialized:

int isInitOk(int fd) { uint32_t invlid_num = (uint64_t)(-1); while (1) { uint32_t subs = (uint32_t) nn_get_statistic (fd, NN_STAT_CURRENT_CONNECTIONS); if (subs != invlid_num && subs > 0) { return 0; } } }

In nng1.5.2, the nn_get_statistic interface no longer takes effect. Is there any replacement method?


== DESCRIPTION

The nn_get_statistic() function exists only as a stub, and always returns zero.

wsxjbupt avatar Aug 09 '22 02:08 wsxjbupt