allow default relay port, like name, to be set at compile time

This commit is contained in:
ehouse 2009-11-22 16:30:20 +00:00
parent 55478369e4
commit 5ab3425377
2 changed files with 4 additions and 1 deletions

View file

@ -715,7 +715,7 @@ comms_getInitialAddr( CommsAddrRec* addr )
#if defined XWFEATURE_RELAY
addr->conType = COMMS_CONN_RELAY; /* for temporary ease in debugging */
addr->u.ip_relay.ipAddr = 0L; /* force 'em to set it */
addr->u.ip_relay.port = 10999;
addr->u.ip_relay.port = RELAY_PORT_DEFAULT;
{
char* name = RELAY_NAME_DEFAULT;
char* room = RELAY_ROOM_DEFAULT;

View file

@ -171,6 +171,9 @@ typedef struct CommonPrefs {
#ifndef RELAY_ROOM_DEFAULT
# define RELAY_ROOM_DEFAULT "Room 1"
#endif
#ifndef RELAY_PORT_DEFAULT
# define RELAY_PORT_DEFAULT 10999
#endif
#ifdef MEM_DEBUG
# define XP_MALLOC(pool,nbytes) \