public TcpRemoteNode(LocalNode localNode, Socket socket) : base(localNode) { this.socket = socket; OnConnected(); }
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; }
protected RemoteNode(LocalNode localNode) { TR.Enter(); this.localNode = localNode; TR.Exit(); }
private void OnMemPoolMessageReceived() { TR.Enter(); EnqueueMessage("inv", InvPayload.Create(InventoryType.TX, LocalNode.GetMemoryPool().Select(p => p.Hash).ToArray())); TR.Exit(); }
protected RemoteNode(LocalNode localNode) { this.localNode = localNode; }
public TcpRemoteNode(LocalNode localNode, Socket socket) : base(localNode) { this.socket = socket; OnConnectedListener();//別人連我 }