Bee2 branch landing: step 1
[fleet.git] / src / edu / berkeley / fleet / fpga / Client.java
index 4c223fd..269181e 100644 (file)
@@ -50,8 +50,9 @@ public class Client extends FleetProcess {
     public Client(Fpga fpga, String bitfile, Instruction[] instructions) throws Exception {
         this.fpga = fpga;
 
-        s = new Socket(InetAddress.getByName("goliath.megacz.com"), 3133);
-        //s = new Socket(InetAddress.getByName("localhost"), 3133);
+        s = fpga instanceof Bee2
+            ? new Socket(InetAddress.getByName("megacz.com"), 3133)
+            : new Socket(InetAddress.getByName("goliath.megacz.com"), 3133);
         this.os = new BufferedOutputStream(s.getOutputStream());
         final InputStream is = new BufferedInputStream(s.getInputStream());
         PrintWriter pw = new PrintWriter(new OutputStreamWriter(os));