Exemplo n.º 1
0
        public RemoteNode(IPEndPoint remoteEndPoint)
        {
            this.remoteEndPoint = remoteEndPoint;

            this.socket = new Socket(remoteEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
            this.receiver = new RemoteReceiver(this.socket, persistent: false);
            this.sender = new RemoteSender(this.socket);

            WireNode();
        }
Exemplo n.º 2
0
        public RemoteNode(IPEndPoint remoteEndPoint)
        {
            this.remoteEndPoint = remoteEndPoint;

            this.socket   = new Socket(remoteEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
            this.receiver = new RemoteReceiver(this.socket, persistent: false);
            this.sender   = new RemoteSender(this.socket);

            WireNode();
        }
Exemplo n.º 3
0
        public RemoteNode(Socket socket)
        {
            this.socket = socket;
            this.isConnected = true;

            this.localEndPoint = (IPEndPoint)socket.LocalEndPoint;
            this.remoteEndPoint = (IPEndPoint)socket.RemoteEndPoint;

            this.receiver = new RemoteReceiver(this.socket, persistent: false);
            this.sender = new RemoteSender(this.socket);

            WireNode();
        }
Exemplo n.º 4
0
        public RemoteNode(Socket socket)
        {
            this.socket      = socket;
            this.isConnected = true;

            this.localEndPoint  = (IPEndPoint)socket.LocalEndPoint;
            this.remoteEndPoint = (IPEndPoint)socket.RemoteEndPoint;

            this.receiver = new RemoteReceiver(this.socket, persistent: false);
            this.sender   = new RemoteSender(this.socket);

            WireNode();
        }
Exemplo n.º 5
0
        public Peer(IPEndPoint remoteEndPoint, bool isSeed, bool isIncoming)
        {
            RemoteEndPoint = remoteEndPoint;
            IsSeed = isSeed;
            IsIncoming = isIncoming;

            this.socket = new Socket(remoteEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
            Receiver = new RemoteReceiver(this, this.socket);
            Sender = new RemoteSender(this, this.socket);

            this.blockMissCountMeasure = new CountMeasure(TimeSpan.FromMinutes(10));

            WireNode();
        }
Exemplo n.º 6
0
        public Peer(IPEndPoint remoteEndPoint, bool isSeed, bool isIncoming)
        {
            RemoteEndPoint = remoteEndPoint;
            IsSeed         = isSeed;
            IsIncoming     = isIncoming;

            this.socket = new Socket(remoteEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
            Receiver    = new RemoteReceiver(this, this.socket);
            Sender      = new RemoteSender(this, this.socket);

            this.blockMissCountMeasure = new CountMeasure(TimeSpan.FromMinutes(10));

            WireNode();
        }
Exemplo n.º 7
0
        public Peer(Socket socket, bool isSeed, bool isIncoming)
        {
            this.socket = socket;
            this.IsConnected = true;
            IsIncoming = isIncoming;

            LocalEndPoint = (IPEndPoint)socket.LocalEndPoint;
            RemoteEndPoint = (IPEndPoint)socket.RemoteEndPoint;

            Receiver = new RemoteReceiver(this, this.socket);
            Sender = new RemoteSender(this, this.socket);

            this.blockMissCountMeasure = new CountMeasure(TimeSpan.FromMinutes(10));

            WireNode();
        }
Exemplo n.º 8
0
        public Peer(Socket socket, bool isSeed, bool isIncoming)
        {
            this.socket      = socket;
            this.IsConnected = true;
            IsIncoming       = isIncoming;

            LocalEndPoint  = (IPEndPoint)socket.LocalEndPoint;
            RemoteEndPoint = (IPEndPoint)socket.RemoteEndPoint;

            Receiver = new RemoteReceiver(this, this.socket);
            Sender   = new RemoteSender(this, this.socket);

            this.blockMissCountMeasure = new CountMeasure(TimeSpan.FromMinutes(10));

            WireNode();
        }