code: function DevAdapter (controller) {
      this.id        = controller.svc;
      this.uid       = "//" + controller.svcopts.adapter + "/" + controller.svc + ":" +  controller.svcopts.port;;
      this.info      = 'ocpvlm';
      this.control   = 'tcpsock';                // this wait for AIS clients to connect via TCP  
      this.gateway   =  controller.gateway;
      this.debug     =  controller.svcopts.debug;// inherit debug from controller
      this.controller=  controller;              // keep a link to device controller and TCP socket
      this.count     =  0;                       // index for incomming client
      this.nbclient  =  0;
      this.distance  =  controller.svcopts.distance*1852 || 30*1852;
      this.maxclient =  controller.svcopts.maxclient || 30;
      this.Debug (1,"uid=%s distance=%dNM", this.uid, this.distance/1852);
      
      HookBackendEvent(this, controller.gateway.backend);
  }
docs: Adapter is an object own by a given device controller that handle data connection