package Connection;

import j4d.open.*;

class Examplet {

  /* getConnect allows you to establish a connection onto 4D Server
  * be carefull that a connection without process don't appears onto the server !
  * you must pass IP adress and Port number
  * IP Adress as String
  * Port number as Integer
  */
  public opConnection getConnect(String vIpAdr, int vNumPort) throws opException{

    opConnection mConnection = null;
    opDriverManager drvrManager = new opDriverManager();

    try {
      mConnection = drvrManager.getConnection (vIpAdr,vNumPort);      
    }
    catch (opException er){throw er;}

    return  mConnection;
  }

}