public ModbusUDPMaster(String addr,int port,int timeout){
  super();
  try {
    InetAddress slaveAddress=InetAddress.getByName(addr);
    connection=new UDPMasterConnection(slaveAddress);
    connection.setPort(port);
    connection.setTimeout(timeout);
  }
 catch (  UnknownHostException e) {
    throw new RuntimeException("Failed to construct ModbusUDPMaster instance.",e);
  }
}

public ModbusUDPMaster ( String addr , int port , int timeout ) { super ( ) ; try { InetAddress slaveAddress = InetAddress . getByName ( addr ) ; connection = new UDPMasterConnection ( slaveAddress ) ; connection . setPort ( port ) ; connection . setTimeout ( timeout ) ; } catch ( UnknownHostException e ) { throw new RuntimeException ( "Failed to construct ModbusUDPMaster instance." , e ) ; } }
constructs a new master facade instance for communication with a given slave .
