Change tabbing for everything....
[IRC.git] / Robust / src / ClassLibrary / ServerSocket.java
index 51dd73e94575720160168c93ba325776faf5d910..723e886c7bf349e0d19da8b2aa5e41e51ad355b3 100644 (file)
@@ -1,30 +1,38 @@
 public class ServerSocket {
-    /* Socket pending flag */
-    external flag SocketPending;    
-    /* File Descriptor */
-    int fd;
-
-    private native int createSocket(int port);
-
-    public ServerSocket(int port) {
-       this.fd=createSocket(port);
-    }
-    
-    public Socket accept() {
-       Socket s=new Socket();
-       int newfd=nativeaccept(s);
-       s.setFD(newfd);
-       return s;
-    }
-
-    /* Lets caller pass in their own Socket object. */
-    public void accept(Socket s) {
-       int newfd=nativeaccept(s);
-       s.setFD(newfd);
-    }
-
-    private native int nativeaccept(Socket s);
-    
-    public void close();
+  /* Socket pending flag */
+  external flag SocketPending;
+  /* File Descriptor */
+  int fd;
+
+  private native int createSocket(int port);
+
+  public ServerSocket(int port) {
+    this.fd=createSocket(port);
+  }
+
+  public Socket accept() {
+    Socket s=new Socket();
+    int newfd=nativeaccept(s);
+    s.setFD(newfd);
+    return s;
+  }
+
+  public Socket accept(tag td) {
+    Socket s=new Socket() {
+    } {td};
+    int newfd=nativeaccept(s);
+    s.setFD(newfd);
+    return s;
+  }
+
+  /* Lets caller pass in their own Socket object. */
+  public void accept(Socket s) {
+    int newfd=nativeaccept(s);
+    s.setFD(newfd);
+  }
+
+  private native int nativeaccept(Socket s);
+
+  public void close();
 
 }