Пример #1
0
 public void Run()
 {
     try
     {
         MockPskTlsServer  server         = new MockPskTlsServer();
         TlsServerProtocol serverProtocol = new TlsServerProtocol(s.GetStream(), secureRandom);
         serverProtocol.Accept(server);
         Stream log = new TeeOutputStream(serverProtocol.Stream, stdout);
         Streams.PipeAll(serverProtocol.Stream, log);
         serverProtocol.Close();
     }
     finally
     {
         try
         {
             s.Close();
         }
         catch (IOException)
         {
         }
         finally
         {
         }
     }
 }
Пример #2
0
 public void Run()
 {
     try
     {
         MockPskTlsServer server = new MockPskTlsServer();
         mServerProtocol.Accept(server);
         Streams.PipeAll(mServerProtocol.Stream, mServerProtocol.Stream);
         mServerProtocol.Close();
     }
     catch (Exception)
     {
         //throw new RuntimeException(e);
     }
 }
Пример #3
0
 public void Run()
 {
     try
     {
         MockPskTlsServer server = new MockPskTlsServer();
         mServerProtocol.Accept(server);
         Streams.PipeAll(mServerProtocol.Stream, mServerProtocol.Stream);
         mServerProtocol.Close();
     }
     catch (Exception)
     {
         //throw new RuntimeException(e);
     }
 }