code: def _connect(self):
          
          self._soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
          self._soc.connect((self._ipaddr, self._port))
          self._soc.send(_build_request({'cmd': cmd.CMD_MESSAGE_PASSWORD,
                                         'sha': self._password}))
docs: Connect to server.