Skip to main content
summaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorFelix Burton2013-03-17 16:00:25 +0000
committerFelix Burton2013-03-17 16:00:25 +0000
commitdf1de4ff35d7999062a2139a591ed2ed5fca2c4f (patch)
tree35c3099aa04ba3c1da8cee012b5587ccf4538f62 /agent
parent79ea34c1645b517ad14e3a8b0beb234451e72007 (diff)
downloadorg.eclipse.tcf.agent-df1de4ff35d7999062a2139a591ed2ed5fca2c4f.tar.gz
org.eclipse.tcf.agent-df1de4ff35d7999062a2139a591ed2ed5fca2c4f.tar.xz
org.eclipse.tcf.agent-df1de4ff35d7999062a2139a591ed2ed5fca2c4f.zip
TCF Agent: Allow default URL to by set at compile time
Diffstat (limited to 'agent')
-rw-r--r--agent/tcf/main/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/agent/tcf/main/main.c b/agent/tcf/main/main.c
index b6f74a7e..e3a56619 100644
--- a/agent/tcf/main/main.c
+++ b/agent/tcf/main/main.c
@@ -42,6 +42,10 @@
# define ENABLE_SignalHandlers 1
#endif
+#ifndef DEFAULT_SERVER_URL
+# define DEFAULT_SERVER_URL "TCP:"
+#endif
+
static const char * progname;
static unsigned int idle_timeout;
static unsigned int idle_count;
@@ -127,7 +131,7 @@ static const char * help_text[] = {
" -L<file> enable logging, use -L- to send log to stderr",
" -l<level> set log level, the level is comma separated list of:",
"@",
- " -s<url> set agent listening port and protocol, default is TCP::1534",
+ " -s<url> set agent listening port and protocol, default is " DEFAULT_SERVER_URL,
" -S print server properties in Json format to stdout",
" -I<idle-seconds> exit if are no connections for the specified time",
#if ENABLE_Plugins
@@ -170,7 +174,7 @@ int main(int argc, char ** argv) {
#endif
int interactive = 0;
int print_server_properties = 0;
- const char * url = "TCP:";
+ const char * url = DEFAULT_SERVER_URL;
Protocol * proto;
TCFBroadcastGroup * bcg;

Back to the top