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