forked from p15670423/monkey
Agent: Update RelayUserHandler docstrings
This commit is contained in:
parent
7a7ea96dbb
commit
311807cf31
|
@ -14,6 +14,8 @@ class RelayUser:
|
||||||
|
|
||||||
|
|
||||||
class RelayUserHandler:
|
class RelayUserHandler:
|
||||||
|
"""Manages membership to a network relay."""
|
||||||
|
|
||||||
def __init__(self, new_client_timeout: float = DEFAULT_NEW_CLIENT_TIMEOUT):
|
def __init__(self, new_client_timeout: float = DEFAULT_NEW_CLIENT_TIMEOUT):
|
||||||
self._new_client_timeout = new_client_timeout
|
self._new_client_timeout = new_client_timeout
|
||||||
self._relay_users: Dict[IPv4Address, RelayUser] = {}
|
self._relay_users: Dict[IPv4Address, RelayUser] = {}
|
||||||
|
@ -37,7 +39,7 @@ class RelayUserHandler:
|
||||||
|
|
||||||
def add_potential_user(self, user_address: IPv4Address):
|
def add_potential_user(self, user_address: IPv4Address):
|
||||||
"""
|
"""
|
||||||
Notify TCPRelay that a new user may try and connect
|
Notify RelayUserHandler that a new user may try and connect.
|
||||||
|
|
||||||
:param user_address: An address defining potential RelayUser
|
:param user_address: An address defining potential RelayUser
|
||||||
that tries to connect to the relay
|
that tries to connect to the relay
|
||||||
|
|
Loading…
Reference in New Issue