상속: 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,
                };
 }
예제 #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);
 }
예제 #4
0
 public NodeConnection(Bitmessage bitmessage, NetworkAddress networkAddress)
 {
     Bitmessage     = bitmessage;
     NetworkAddress = networkAddress;
     _tcpClient     = new TcpClient(AddressFamily.InterNetwork);
 }