class MyRunnable implements java.lang.Runnable{ public java.net.Socket __sc; public java.io.InputStream __is; public java.io.OutputStream __os; public java.io.ObjectInputStream __ois; public java.io.ObjectOutputStream __oos; public MyRunnable(Socket sc) throws IOException{ __sc = sc; <strong>is = </strong>sc.getInputStream(); <strong>os = </strong>sc.getOutputStream(); System.out.println("<strong>is and </strong>os getted"); <strong>ois = new ObjectInputStream(</strong>is); <strong>oos = new ObjectOutputStream(</strong>oos); System.out.println("<strong>ois and </strong>oos getted"); } }
|