示例#1
0
文件: IPC.cs 项目: eikoyoneki/haggle
        public NeighborEvent(cHaggleEvent e)
            : base(e)
        {
            if (e.type != HaggleEvent.NEIGHBOR_UPDATE)
            {
                throw new Exception("Not a neighbor update event");
            }

            neighbors = new Node.NodeList(e.data);
        }
示例#2
0
        public NeighborEvent(cHaggleEvent e)
            : base(e)
        {
            if (e.type != HaggleEvent.NEIGHBOR_UPDATE)
                        {
                                throw new Exception("Not a neighbor update event");
                        }

                        neighbors = new Node.NodeList(e.data);
        }