INNER CODE UNIT · Python

Client

unrealcv/unrealcv · client/python/unrealcv/__init__.py:142

class Client:
    """
    Client can be used to send request to a game and get response
    Currently only one client is allowed at a time
    More clients will be rejected
    """

    SOCKET_TIMEOUT = 60
    RECONNECT_ATTEMPTS = 10
    RECONNECT_BASE_DELAY = 0.5
    RECONNECT_MAX_DELAY = 8.0

    def __init__(self, endpoint, type='inet'):
        """
        Parameters:
        endpoint: a tuple (ip, port)
        type: unix or inet
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…