def __init__(self, host="localhost", port=6025):
        """
        A remote Environment that one can connect to through tcp.
        Implements a simple msgpack protocol to get the step/reset/etc.. commands to the
        remote server and simply waits (blocks) for a response.

        Args:
                host (str): The hostname to connect to.
                port (int): The port to connect to.
        """
        Environment.__init__(self)
        self.port = int(port) or 6025
        self.host = host or "localhost"
        self.socket = None
        # The size of the response buffer (depends on the Env's observation-space).
        self.buffer_size = 8192

        # Cache the last received observation (through socket) here.
        self.last_observation = None
def __init__ ( self , host = "localhost" , port = 6025 ) : Environment . __init__ ( self ) self . port = int ( port ) or 6025 self . host = host or "localhost" self . socket = None self . buffer_size = 8192 self . last_observation = None
A remote Environment that one can connect to through tcp.
        Implements a simple msgpack protocol to get the step/reset/etc.. commands to the
        remote server and simply waits (blocks) for a response.

        Args:
                host (str): The hostname to connect to.
                port (int): The port to connect to.