more changes
[IRC.git] / Robust / src / ClassLibrary / SocketJava.java
index 55624e1b54bc3998d29d0777c16db64eaf69f234..a24a7fe3780c6dd76a836809aafa71f1da6f1c8a 100644 (file)
@@ -1,8 +1,20 @@
 public class Socket {
     /* File Descriptor */
     int fd;
-    
+    SocketInputStream sin;
+    SocketOutputStream sout;
+
     public Socket() {
+       sin=new SocketInputStream(this);
+       sout=new SocketOutputStream(this);
+    }
+
+    public InputStream getInputStream() {
+       return sin;
+    }
+
+    public OutputStream getOutputStream() {
+       return sout;
     }
 
     public Socket(String host, int port) {