Mercurial > hg > Database > Christie-sharp
changeset 64:83e02a762168
fix port number
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 29 Jan 2022 17:57:33 +0900 |
parents | 960fc3820613 |
children | 058d41dcec41 |
files | Test/Topology/TreeTestTopology/StartTreeTestTopology.cs topology/node/StartTopologyNode.cs |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Test/Topology/TreeTestTopology/StartTreeTestTopology.cs Sat Jan 29 17:31:31 2022 +0900 +++ b/Test/Topology/TreeTestTopology/StartTreeTestTopology.cs Sat Jan 29 17:57:33 2022 +0900 @@ -23,7 +23,7 @@ String[] nodeArg = { "--managerPort", topologyManagerPort.ToString(), "--managerHost", "localhost", - "--localPort", topologyNodePort.ToString() + i}; + "--localPort", (topologyNodePort + i).ToString()}; TopologyNodeConfig cs = new TopologyNodeConfig(nodeArg); new StartTopologyNode(cs, new ChildCodeGear()).Put("maxNodeNum", topologyManagerConfig.hasChild); }
--- a/topology/node/StartTopologyNode.cs Sat Jan 29 17:31:31 2022 +0900 +++ b/topology/node/StartTopologyNode.cs Sat Jan 29 17:57:33 2022 +0900 @@ -1,4 +1,6 @@ +using System; using Christie_net.codegear; +using Christie_net.daemon; namespace Christie_net.topology.node @@ -13,6 +15,6 @@ } public StartTopologyNode(TopologyNodeConfig conf, CodeGear startCG) : this(CreateCgm(conf.localPort), conf, - startCG){ } + startCG) { } } }