def connect (self, username, password, host = None, port = None, ): """Open the connection and log in. Inputs: host: IP address (name or numeric) of host username: username for login password: password for login """ self._initData() self._password = password self._username = username TCPConnection.connect(self, host, port)
def connect (self, progID, password, username, host = None, port = None, ): """Opens the connection and logs in. Inputs: - progID: the desired program ID; the actual program ID should be the same except case may differ - password: the password associated with the program ID - username: desired username; the actual username should match if unique, else the hub will modify it in some fashion - host: TCP address of host; overrides the default specified at instantiation - port: TCP port of host; overrides the default specified at instantiation """ # make the basic connection self._initData() self.desProgID = progID self.__password = password self.desUsername = username TCPConnection.connect(self, host, port)
def connect( self, progID, password, username, host=None, port=None, ): """Opens the connection and logs in. Inputs: - progID: the desired program ID; the actual program ID should be the same except case may differ - password: the password associated with the program ID - username: desired username; the actual username should match if unique, else the hub will modify it in some fashion - host: TCP address of host; overrides the default specified at instantiation - port: TCP port of host; overrides the default specified at instantiation """ # make the basic connection self._initData() self.desProgID = progID self.__password = password self.desUsername = username TCPConnection.connect(self, host, port)