add options to set address and port, improved usage page

This commit is contained in:
jazz
2026-04-15 11:12:05 -05:00
parent e3cf81ab3f
commit 07e742aa4e
2 changed files with 49 additions and 18 deletions

View File

@@ -8,7 +8,7 @@ using namespace std;
typedef enum { NO_MODE = 0, SERVER_MODE = 1, CLIENT_MODE = 2 } chatmode_t;
extern chatmode_t mode;
extern const int PORT_NUM;
extern int PORT_NUM;
extern string IP_ADDRESS;
extern const int DEFAULT_CUR_X;
extern const int DEFAULT_CUR_Y;