code: function TcpConnect (socket) {
      this.count ++;    // increment client count inside this server
      socket.uid = "Socket://" + socket.remoteAddress +":" + socket.remotePort;
      socket.controller = this.controller;
      socket.adapter   = this.adapter;
      socket.controller.Debug(4, "N°:%d Server=[%s] Client: [%s]"
               ,this.count,this.uid,socket.uid);            
          
      // attach new device object to client socket
      socket.device = new TcpClient (socket);
      
      // notify adapter that it has a new client device connected
      if (socket.adapter.ClientConnect (socket) === -1) {
          try {socket.end();} catch(e){};
          return;
      }
    
      // send any received data to device parser
      socket.on(this.evtname, function(buffer) {
  	    socket.controller.Debug(7, "%s Data=[%s]", socket.device.uid, buffer);
          // call adapter specific method to process messages
          socket.adapter.ParseBuffer(socket, buffer);
      });
      
      // On error close socket
      socket.on('error', function (err) {
          socket.controller.Debug(3, "%s ERROR=[%s]", socket.device.uid, err);
          this.adapter.ClientQuit(socket);
          try {socket.destroy();} catch(e){};
      });
          
      // Remove the device from gateway active device list and notify adapter for eventual cleanup
      socket.on('end', function () {
  	socket.controller.Debug(4, "SockClient Quit devid=%s uid=%s", socket.device.devid, socket.device.uid);
          this.adapter.ClientQuit(socket);
      });
      
  }
docs: [Must be known] TcpConnect handler extend net.createServer object This method is executed at each a client hit TcpServer listening port