function JSJaCConnection(oArg) {

  if (oArg && oArg.httpbase)
    /**
     * @private
     */
    this._httpbase = oArg.httpbase;

  if (oArg && oArg.oDbg && oArg.oDbg.log) {
      /**
       * Reference to debugger interface
       * (needs to implement method <code>log</code>)
       * @type JSJaCDebugger
       */
    this.oDbg = oArg.oDbg;
  } else {
      this.oDbg = {log: function() { }};
  }

  if (oArg && oArg.timerval)
    this.setPollInterval(oArg.timerval);
  else
    this.setPollInterval(JSJAC_TIMERVAL);

  if (oArg && oArg.cookie_prefix)
      /**
       * @private
       */
    this._cookie_prefix = oArg.cookie_prefix;
  else
    this._cookie_prefix = "";

  /**
   * @private
   */
  this._connected = false;
  /**
   * @private
   */
  this._events = [];
  /**
   * @private
   */
  this._keys = null;
  /**
   * @private
   */
  this._ID = 0;
  /**
   * @private
   */
  this._inQ = [];
  /**
   * @private
   */
  this._pQueue = [];
  /**
   * @private
   */
  this._regIDs = [];
  /**
   * @private
   */
  this._req = [];
  /**
   * @private
   */
  this._status = 'intialized';
  /**
   * @private
   */
  this._errcnt = 0;
  /**
   * @private
   */
  this._inactivity = JSJAC_INACTIVITY;
  /**
   * @private
   */
  this._sendRawCallbacks = [];
}
/**
 * Creates a new Jabber/XMPP connection (a connection to a jabber server)
 * @class Somewhat abstract base class for jabber connections. Contains all
 * of the code in common for all jabber connections
 * @constructor
 * @param {Object} oArg Configurational object for this connection.
 * @param {string} oArg.httpbase The connection endpoint of the HTTP service to talk to.
 * @param {JSJaCDebugger} [oArg.oDbg] A reference to a debugger implementing the JSJaCDebugger interface.
 * @param {int} [oArg.timerval] The polling interval.
 * @param {string} [oArg.cookie_prefix] Prefix to cookie names used when suspending.
 */
Creates a new Jabber/XMPP connection (a connection to a jabber server)
@class Somewhat abstract base class for jabber connections. Contains all
of the code in common for all jabber connections
@constructor
@param {Object} oArg Configurational object for this connection.
@param {string} oArg.httpbase The connection endpoint of the HTTP service to talk to.
@param {JSJaCDebugger} [oArg.oDbg] A reference to a debugger implementing the JSJaCDebugger interface.
@param {int} [oArg.timerval] The polling interval.
@param {string} [oArg.cookie_prefix] Prefix to cookie names used when suspending.
Creates a new Jabber / XMPP connection ( a connection to a jabber server ) @class Somewhat abstract base class for jabber connections . Contains all of the code in common for all jabber connections @constructor @param { Object } oArg Configurational object for this connection . @param { string } oArg . httpbase The connection endpoint of the HTTP service to talk to . @param { JSJaCDebugger } [ oArg . oDbg ] A reference to a debugger implementing the JSJaCDebugger interface . @param { int } [ oArg . timerval ] The polling interval . @param { string } [ oArg . cookie_prefix ] Prefix to cookie names used when suspending .
function JSJaCConnection(oArg) {
  if (oArg && oArg.httpbase)
    this._httpbase = oArg.httpbase;
  if (oArg && oArg.oDbg && oArg.oDbg.log) {
    this.oDbg = oArg.oDbg;
  } else {
      this.oDbg = {log: function() { }};
  }
  if (oArg && oArg.timerval)
    this.setPollInterval(oArg.timerval);
  else
    this.setPollInterval(JSJAC_TIMERVAL);
  if (oArg && oArg.cookie_prefix)
    this._cookie_prefix = oArg.cookie_prefix;
  else
    this._cookie_prefix = "";
  this._connected = false;
  this._events = [];
  this._keys = null;
  this._ID = 0;
  this._inQ = [];
  this._pQueue = [];
  this._regIDs = [];
  this._req = [];
  this._status = 'intialized';
  this._errcnt = 0;
  this._inactivity = JSJAC_INACTIVITY;
  this._sendRawCallbacks = [];
}
function JSJaCConnection ( oArg ) { if ( oArg && oArg . httpbase ) this . _httpbase = oArg . httpbase ; if ( oArg && oArg . oDbg && oArg . oDbg . log ) { this . oDbg = oArg . oDbg ; } else { this . oDbg = { log : function ( ) { } } ; } if ( oArg && oArg . timerval ) this . setPollInterval ( oArg . timerval ) ; else this . setPollInterval ( JSJAC_TIMERVAL ) ; if ( oArg && oArg . cookie_prefix ) this . _cookie_prefix = oArg . cookie_prefix ; else this . _cookie_prefix = "" ; this . _connected = false ; this . _events = [ ] ; this . _keys = null ; this . _ID = 0 ; this . _inQ = [ ] ; this . _pQueue = [ ] ; this . _regIDs = [ ] ; this . _req = [ ] ; this . _status = 'intialized' ; this . _errcnt = 0 ; this . _inactivity = JSJAC_INACTIVITY ; this . _sendRawCallbacks = [ ] ; }
Creates a new Jabber/XMPP connection (a connection to a jabber server)
 @class Somewhat abstract base class for jabber connections.
Creates a new Jabber / XMPP connection ( a connection to a jabber server ) @class Somewhat abstract base class for jabber connections .
/**
     * @private
     */ /**
       * Reference to debugger interface
       * (needs to implement method <code>log</code>)
       * @type JSJaCDebugger
       */ /**
       * @private
       */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */ /**
   * @private
   */