Ignore:
Timestamp:
12/21/22 10:17:25 (16 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Support for connecting to X-Plane remotely

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/xplane.py

    r1064 r1067  
    494494        not due to no longer requested.
    495495        """
     496        config = self._connectionListener.config
     497        if config.xplaneRemote:
     498            address = "tcp:" + config.xplaneAddress
     499        else:
     500            address = "local"
     501
     502        print("xplane.Handler._connect: address:", address)
     503
    496504        while self._connectionRequested:
    497505            if attempts>=self.NUM_CONNECTATTEMPTS:
     
    507515            try:
    508516                attempts += 1
    509                 self._xplane.connect()
     517                self._xplane.connect(address = address)
    510518
    511519                (xplaneVersion, xplmVersion, xplraVersion) = \
     
    734742
    735743        self._fuelCallback = None
     744
     745    @property
     746    def config(self):
     747        """Get the configuration."""
     748        return self._connectionListener.config
    736749
    737750    def connect(self, aircraft):
Note: See TracChangeset for help on using the changeset viewer.