BitSharp.Network.Peer.Peer C# (CSharp) Méthode

Peer() public méthode

public Peer ( Socket socket, bool isSeed, bool isIncoming ) : BitSharp.Common
socket Socket
isSeed bool
isIncoming bool
Résultat BitSharp.Common
        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();
        }

Same methods

Peer::Peer ( IPEndPoint remoteEndPoint, bool isSeed, bool isIncoming ) : BitSharp.Common