public ConnectionToServer(TcpClient tcpClient, ICanHandleMessageOutput messageOutput, string encryption) : base(tcpClient, messageOutput) { this.encryption = encryption; }
public ConnectionToClient(TcpClient tcpClient, ICanHandleMessageOutput messageOutput, int bufferSize, DiffieHellmanJsonReader primesReader) : base(tcpClient, messageOutput, bufferSize) { this.primesReader = primesReader; }
protected ConnectionBase(TcpClient tcpClient, ICanHandleMessageOutput messageOutput, int bufferSize = 4096) { TcpClient = tcpClient; Stream = tcpClient.GetStream(); MessageOutput = messageOutput; BufferSize = bufferSize; }