Terminal Klasse entfernt

This commit is contained in:
Daniel Herrmann
2014-03-27 12:07:02 +01:00
parent e3c670b156
commit ff8cba68ab
2 changed files with 3 additions and 106 deletions

View File

@@ -1,9 +1,9 @@
using System.Net.Sockets;
using System.Threading;
using System;
public class Program
{
private Terminal Term;
private Receiver Rec;
private Sender Send;
private Thread SenderThread;
@@ -17,7 +17,6 @@ public class Program
public Program ()
{
Term = new Terminal ();
TcpClient client = new TcpClient ("localhost", 9999);
Rec = new Receiver (client);
Send = new Sender (client);
@@ -36,16 +35,15 @@ public class Program
string line;
while ((line = Rec.Receive()) != null)
{
Term.PrintLine(line);
Console.WriteLine(line);
}
SenderThread.Abort();
Term.Close();
}
public void doSend ()
{
while (true) {
Send.Send(Term.ReadLine());
Send.Send(Console.ReadLine());
}
}