Exemple #1
0
 /**
  * Creates connection to the remote host.
  *
  * @param address - {@link InetAddress} of the remote host
  * @return handle to the connection to the remote host
  * @throws IOException when properties file was not found
  * @throws FileNotFoundException when properties file was not found
  */
 public ConnectionHandle createConnection(InetAddress address)
     throws FileNotFoundException, IOException {
   int handle = connectionManager.createConnection(address);
   connectionManager.getConnection(handle).registerListener(this);
   return new ConnectionHandle(handle);
 }