public void open() throws HardwareInterfaceException { try { if (socket != null) { socket.close(); } socket = new DatagramSocket(CONTROL_PORT); socket.setSoTimeout(100); input = new AEUnicastInput(DATA_PORT); input.setSequenceNumberEnabled(false); input.setAddressFirstEnabled(true); input.setSwapBytesEnabled(false); input.set4ByteAddrTimestampEnabled(true); input.setTimestampsEnabled(false); input.setBufferSize(1200); input.setTimestampMultiplier(1); input.setPort(DATA_PORT); input.open(); } catch (IOException ex) { throw new HardwareInterfaceException(ex.toString()); } }
public void setAEBufferSize(int AEBufferSize) { if (input == null) { return; } input.setBufferSize(AEBufferSize); }