Inheritance: IDisposable
 public NodeConnection(Bitmessage bitmessage, TcpClient tcpClient)
 {
     Bitmessage = bitmessage;
     _tcpClient = tcpClient;
     var ipep = (IPEndPoint) tcpClient.Client.RemoteEndPoint;
     NetworkAddress = new NetworkAddress
                {
                    TimeLastSeen = DateTime.UtcNow,
                    Stream = 1,
                    Services = 0, // ???
                    Host = (ipep.Address.ToString()),
                    Port = (UInt16)ipep.Port,
                };
 }
Exemplo n.º 2
0
        public NodeConnection(Bitmessage bitmessage, TcpClient tcpClient)
        {
            Bitmessage = bitmessage;
            _tcpClient = tcpClient;
            var ipep = (IPEndPoint)tcpClient.Client.RemoteEndPoint;

            NetworkAddress = new NetworkAddress
            {
                TimeLastSeen = DateTime.UtcNow,
                Stream       = 1,
                Services     = 0,                            // ???
                Host         = (ipep.Address.ToString()),
                Port         = (UInt16)ipep.Port,
            };
        }
 public NodeConnection(Bitmessage bitmessage, NetworkAddress networkAddress)
 {
     Bitmessage = bitmessage;
     NetworkAddress = networkAddress;
     _tcpClient = new TcpClient(AddressFamily.InterNetwork);
 }
Exemplo n.º 4
0
 public NodeConnection(Bitmessage bitmessage, NetworkAddress networkAddress)
 {
     Bitmessage     = bitmessage;
     NetworkAddress = networkAddress;
     _tcpClient     = new TcpClient(AddressFamily.InterNetwork);
 }