示例#1
0
文件: Peer.cs 项目: pjc0247/minichain
        public Peer(PeerPool _pool, WebSocket _ws)
        {
            ws   = _ws;
            pool = _pool;

            ws.OnOpen    += (_, __) => OnOpen();
            ws.OnClose   += (_, e) => OnClose(e);
            ws.OnMessage += (_, e) => OnMessage(e);
        }
示例#2
0
 public NodeBase()
 {
     peers = new PeerPool(this);
 }
示例#3
0
文件: Peer.cs 项目: pjc0247/minichain
 public Peer(PeerPool _pool)
 {
     pool = _pool;
 }