Skip to content

Commit

Permalink
* NEW [demo] Add comments for round robin option.
Browse files Browse the repository at this point in the history
Signed-off-by: wanghaemq <[email protected]>
  • Loading branch information
wanghaEMQ committed Aug 8, 2024
1 parent a99c073 commit 6919f65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/multiurls_switch/multiurls_switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
#include "nng/nng.h"
#include "nng/supplemental/util/platform.h"

// For example. There are 3 urls.
// When round robin is true.
// The order of connecting will be 0 (server unavailable) -> 1 (connected and then disconnected) -> 2 -> 0.
// When round robin is false.
// The order of connecting will be 0 (server unavailable) -> 1 (connected and then disconnected) -> 0.
#define ROUND_ROBIN true

void
Expand Down

0 comments on commit 6919f65

Please sign in to comment.