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();
}