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));