Change tabbing for everything....
[IRC.git] / Robust / src / ClassLibrary / ServerSocketJava.java
index 30e9638aa72c73f79a4925b0c584ff37306cc455..1cf07f29133cd284675f629ac3789076747ed565 100644 (file)
@@ -1,28 +1,28 @@
 public class ServerSocket {
-    /* File Descriptor */
-    int fd;
+  /* File Descriptor */
+  int fd;
 
-    private native int createSocket(int port);
+  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 ServerSocket(int port) {
+    this.fd=createSocket(port);
+  }
 
-    /* Lets caller pass in their own Socket object. */
-    public void accept(Socket s) {
-       int newfd=nativeaccept(s);
-       s.setFD(newfd);
-    }
+  public Socket accept() {
+    Socket s=new Socket();
+    int newfd=nativeaccept(s);
+    s.setFD(newfd);
+    return s;
+  }
 
-    private native int nativeaccept(Socket s);
-    
-    public void close();
+  /* 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();
 
 }