code: public static CGateSession connect(InetAddress cgate_server, int command_port, int event_port, int status_change_port)
      {
          return new CGateSession(cgate_server, command_port, event_port, status_change_port);
      }
docs: Connect to a C-Gate server using the supplied cgate_server and cgate_port.
  
  @param cgate_server The <code>InetAddress</code> of the C-Gate server
  @param command_port The command port for the C-Gate server
  @param event_port The event port for the C-Gate server
  @param status_change_port The status change port for the C-Gate server
  @return CGateSession The C-Gate session