Commit a30ad25b authored by legoc's avatar legoc
Browse files

In server config, if host=IP the IP address is used for the endpoint.

parent 32a06d5c
Thu Apr 16 10:21:07 CEST 2020 INFO: Endpoint is tcp://192.168.1.23:10000
Thu Apr 16 10:21:07 CEST 2020 INFO: Status socket on port 10001
Thu Apr 16 10:21:07 CEST 2020 INFO: Application fastout output socket on port 10002
Thu Apr 16 10:21:07 CEST 2020 INFO: Application error output socket on port 10003
Thu Apr 16 10:21:07 CEST 2020 INFO: Application veryfast output socket on port 10004
Thu Apr 16 10:21:07 CEST 2020 INFO: Application statejava output socket on port 10005
Thu Apr 16 10:21:07 CEST 2020 INFO: Application pubjava output socket on port 10006
Thu Apr 16 10:21:07 CEST 2020 INFO: Application publoopjava output socket on port 10007
Thu Apr 16 10:21:07 CEST 2020 INFO: Application subpubjava output socket on port 10008
Thu Apr 16 10:21:07 CEST 2020 INFO: Application nsubpubjava output socket on port 10009
Thu Apr 16 10:21:07 CEST 2020 INFO: Application pub2java output socket on port 10010
Thu Apr 16 10:21:07 CEST 2020 INFO: Application subpub2java output socket on port 10011
Thu Apr 16 10:21:07 CEST 2020 INFO: Application simplejava output socket on port 10012
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startsimplejava output socket on port 10013
Thu Apr 16 10:21:07 CEST 2020 INFO: Application resjava output socket on port 10014
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startresjava output socket on port 10015
Thu Apr 16 10:21:07 CEST 2020 INFO: Application stopjava output socket on port 10016
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startstopjava output socket on port 10017
Thu Apr 16 10:21:07 CEST 2020 INFO: Application canceljava output socket on port 10018
Thu Apr 16 10:21:07 CEST 2020 INFO: Application repjava output socket on port 10019
Thu Apr 16 10:21:07 CEST 2020 INFO: Application reqrepjava output socket on port 10020
Thu Apr 16 10:21:07 CEST 2020 INFO: Application timeoutjava output socket on port 10021
Thu Apr 16 10:21:07 CEST 2020 INFO: Application connectioncheckerjava output socket on port 10022
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startpubjava output socket on port 10023
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startnpubjava output socket on port 10024
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startrepjava output socket on port 10025
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startendpointjava output socket on port 10026
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startlistjava output socket on port 10027
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startreqjava output socket on port 10028
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startareqjava output socket on port 10029
Thu Apr 16 10:21:07 CEST 2020 INFO: Application simplecpp output socket on port 10030
Thu Apr 16 10:21:07 CEST 2020 INFO: Application statecpp output socket on port 10031
Thu Apr 16 10:21:07 CEST 2020 INFO: Application pubcpp output socket on port 10032
Thu Apr 16 10:21:07 CEST 2020 INFO: Application publoopcpp output socket on port 10033
Thu Apr 16 10:21:07 CEST 2020 INFO: Application subpubcpp output socket on port 10034
Thu Apr 16 10:21:07 CEST 2020 INFO: Application pub2cpp output socket on port 10035
Thu Apr 16 10:21:07 CEST 2020 INFO: Application subpub2cpp output socket on port 10036
Thu Apr 16 10:21:07 CEST 2020 INFO: Application nsubpubcpp output socket on port 10037
Thu Apr 16 10:21:07 CEST 2020 INFO: Application rescpp output socket on port 10038
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startrescpp output socket on port 10039
Thu Apr 16 10:21:07 CEST 2020 INFO: Application stopcpp output socket on port 10040
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startsimplecpp output socket on port 10041
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startstopcpp output socket on port 10042
Thu Apr 16 10:21:07 CEST 2020 INFO: Application cancelcpp output socket on port 10043
Thu Apr 16 10:21:07 CEST 2020 INFO: Application repcpp output socket on port 10044
Thu Apr 16 10:21:07 CEST 2020 INFO: Application reqrepcpp output socket on port 10045
Thu Apr 16 10:21:07 CEST 2020 INFO: Application timeoutcpp output socket on port 10046
Thu Apr 16 10:21:07 CEST 2020 INFO: Application connectioncheckercpp output socket on port 10047
Thu Apr 16 10:21:07 CEST 2020 INFO: Application veryfastcpp output socket on port 10048
Thu Apr 16 10:21:07 CEST 2020 INFO: Application stoptimeoutcpp output socket on port 10049
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startpubcpp output socket on port 10050
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startnpubcpp output socket on port 10051
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startrepcpp output socket on port 10052
Thu Apr 16 10:21:07 CEST 2020 INFO: Application reqcppt output socket on port 10053
Thu Apr 16 10:21:07 CEST 2020 INFO: Application reqrepcppt output socket on port 10054
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startrepcppt output socket on port 10055
Thu Apr 16 10:21:07 CEST 2020 INFO: Application streamcpp output socket on port 10056
Thu Apr 16 10:21:07 CEST 2020 INFO: Application startstreamcpp output socket on port 10057
Thu Apr 16 10:21:07 CEST 2020 INFO: Application responder-server output socket on port 10058
Thu Apr 16 10:21:07 CEST 2020 INFO: Application requester-client output socket on port 10059
......@@ -6,14 +6,14 @@
<version>0.0.1</version>
</parent>
<artifactId>cameo-server-jzmq</artifactId>
<version>0.1.6</version>
<version>0.1.7</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>fr.ill.ics</groupId>
<artifactId>cameo-server</artifactId>
<version>0.1.6</version>
<version>0.1.7</version>
<exclusions>
<exclusion>
<groupId>fr.ill.ics</groupId>
......
0.1.7
-----
* If host="IP" the IP address is used for the endpoint.
0.1.6
-----
......
......@@ -6,7 +6,7 @@
<version>0.0.1</version>
</parent>
<artifactId>cameo-server</artifactId>
<version>0.1.6</version>
<version>0.1.7</version>
<packaging>jar</packaging>
<properties>
......
......@@ -176,6 +176,15 @@ public final class ConfigManager {
this.host = "localhost";
}
}
// If host is IP
} else if (host.equals("IP")){
try {
// Try to get the IP address.
this.host = InetAddress.getLocalHost().getHostAddress();
} catch (UnknownHostException e) {
// Otherwise set localhost.
this.host = "localhost";
}
} else {
this.host = host;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment