MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / PrintUsageAndExit

Function PrintUsageAndExit

examples/example_chat.cpp:706–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704const uint16 DEFAULT_SERVER_PORT = 27020;
705
706void PrintUsageAndExit( int rc = 1 )
707{
708 fflush(stderr);
709 printf(
710R"usage(Usage:
711 example_chat client SERVER_ADDR
712 example_chat server [--port PORT]
713)usage"
714 );
715 fflush(stdout);
716 exit(rc);
717}
718
719int main( int argc, const char *argv[] )
720{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected