import java.awt.*;import java.awt.event.*;import chatapp;import java.applet.*;import java.net.*;import java.io.*;public class maskchatapp extends chatapp implements Runnable{ Socket echoSocket = null; DataOutputStream dout = null; DataInputStream din = null; BufferedReader eingabe = null; String nachricht,tastatur; String hostname = "192.169.203.4"; public maskchatapp(Applet a) { super(a); try { echoSocket = new Socket(hostname, 1100); System.out.println("Connected to"+echoSocket); din = new DataInputStream(echoSocket.getInputStream()); dout = new DataOutputStream(echoSocket.getOutputStream()); eingabe = new BufferedReader(new InputStreamReader(System.in)); new Thread(this).start(); } catch(IOException e){System.out.println(e);} } public void run() { try { while(true) { nachricht = din.readUTF(); protokoll.append(nachricht+"\n"); } } catch(IOException e){System.out.println(e);} }//of run public void start() { try { String txt = eingabeLies(eingabe1); eingabeSchreibe(""); dout.writeUTF(txt); } catch(IOException e){System.out.println(e);} }//starten }//of class