MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / usage

Function usage

util/nettest.cpp:153–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152
153void usage(char **argv)
154{
155 fprintf(stderr, "\nUSAGE: %s -client <server name or IP>", argv[0]);
156 fprintf(stderr, " [-old] [-time <t>]");
157 fprintf(stderr, "\n or %s -server [-ipv6]", argv[0]);
158 fprintf(stderr, "\n or %s -findport\n", argv[0]);
159 #if defined(sun) || defined(linux)
160 fprintf(stderr, " or %s -bench <interface> [interval]\n", argv[0]);
161 fprintf(stderr, "\n-bench = Measure throughput on selected network interface");
162 #endif
163 fprintf(stderr, "\n-findport = Display a free TCP port number and exit");
164 fprintf(stderr, "\n-old = Communicate with NetTest server v2.1.x or earlier\n");
165 fprintf(stderr, "-ipv6 = Use IPv6 sockets\n");
166 fprintf(stderr, "-time <t> = Run each benchmark for <t> seconds (default: %.1f)\n",
167 benchTime);
168 fprintf(stderr, " (NOTE: this must be specified on the client)\n\n");
169 exit(1);
170}
171
172
173int main(int argc, char **argv)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected