コード例 #1
0
 public TcpRemoteNode(LocalNode localNode, Socket socket)
     : base(localNode)
 {
     this.socket = socket;
     OnConnected();
 }
コード例 #2
0
 protected RemoteNode(LocalNode localNode)
 {
     this.localNode = localNode;
 }
コード例 #3
0
 public TcpRemoteNode(LocalNode localNode, IPEndPoint remoteEndpoint)
     : base(localNode)
 {
     this.socket           = new Socket(remoteEndpoint.Address.IsIPv4MappedToIPv6 ? AddressFamily.InterNetwork : remoteEndpoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
     this.ListenerEndpoint = remoteEndpoint;
 }
コード例 #4
0
 private void OnMemPoolMessageReceived()
 {
     EnqueueMessage("inv", InvPayload.Create(InventoryType.TX, LocalNode.GetMemoryPool().Select(p => p.Hash).ToArray()));
 }