comparison topology/node/TopologyNodeConnected.cs @ 71:1169915705ab default tip

fix TopologyNode connect
author KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
date Sun, 06 Feb 2022 16:47:41 +0900
parents
children
comparison
equal deleted inserted replaced
70:0f4fa15e5bcb 71:1169915705ab
1 using Christie_net.annotation;
2 using Christie_net.codegear;
3
4
5 namespace Christie_net.topology.node
6 {
7 public class TopologyNodeConnected : CodeGear
8 {
9 [Take] public HostMessage hostMessage;
10 [Peek] public TopologyNodeConfig topologyNodeConfig;
11
12 public TopologyNodeConnected() {
13 }
14
15 public override void Run(CodeGearManager cgm) {
16 hostMessage.setCookie(topologyNodeConfig.cookie);
17 hostMessage.setHostAndPort(hostMessage.getHostName(),cgm.localPort);
18 GetDgm(topologyNodeConfig.getManagerKey()).Put("hostMessage", hostMessage);
19 }
20 }
21 }