Beispiel #1
0
 internal RecordingConnection(Connection connection)
 {
     try
     {
         recordingInputStream  = new RecordingInputStream(connection.InputStream.BaseStream);
         recordingOutputStream = new RecordingOutputStream(connection.OutputStream.BaseStream);
         in_stream             = new System.IO.StreamReader(recordingInputStream);
         out_stream            = new System.IO.StreamWriter(recordingOutputStream);
     }
     catch (System.IO.IOException e)
     {
         throw new RuntimeException(e);
     }
 }
 internal RecordingConnection(Connection connection)
 {
     try
     {
         recordingInputStream = new RecordingInputStream(connection.InputStream.BaseStream);
         recordingOutputStream = new RecordingOutputStream(connection.OutputStream.BaseStream);
         in_stream = new System.IO.StreamReader(recordingInputStream);
         out_stream = new System.IO.StreamWriter(recordingOutputStream);
     }
     catch (System.IO.IOException e)
     {
         throw new RuntimeException(e);
     }
 }