MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / usage

Function usage

tools/pmux/pmux.cpp:664–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664static int usage(FILE *out, int rc)
665{
666 fprintf(
667 out,
668 "Usage: pmux [-h] [-c pmuxdb cluster] [-d pmuxdb name] [-b bind path]\n"
669 "[-p listen port] [-r free ports range x:y][-l|-n][-f]\n"
670 "\n"
671 "Options:\n"
672 " -h This help message\n"
673 " -c Cluster information for pmuxdb\n"
674 " -d Use Comdb2 to save port allocations\n"
675 " -b Unix bind path\n"
676 " -p Port pmux will listen on\n"
677 " -r Range of ports to allocate for databases\n"
678 " -l Use file to persist port allocation\n"
679 " -n Do not persist port allocation (default)\n"
680 " -f Run in foreground rather than put to background\n");
681 return rc;
682}
683
684static bool unlink_bind_path()
685{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected