Mercurial > hg > Database > Christie-sharp
view 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 |
line wrap: on
line source
using Christie_net.annotation; using Christie_net.codegear; namespace Christie_net.topology.node { public class TopologyNodeConnected : CodeGear { [Take] public HostMessage hostMessage; [Peek] public TopologyNodeConfig topologyNodeConfig; public TopologyNodeConnected() { } public override void Run(CodeGearManager cgm) { hostMessage.setCookie(topologyNodeConfig.cookie); hostMessage.setHostAndPort(hostMessage.getHostName(),cgm.localPort); GetDgm(topologyNodeConfig.getManagerKey()).Put("hostMessage", hostMessage); } } }