| 704 | const uint16 DEFAULT_SERVER_PORT = 27020; |
| 705 | |
| 706 | void PrintUsageAndExit( int rc = 1 ) |
| 707 | { |
| 708 | fflush(stderr); |
| 709 | printf( |
| 710 | R"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 | |
| 719 | int main( int argc, const char *argv[] ) |
| 720 | { |