Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(
self,
address,
port,
retries,
timeout,
server_stats_callback=None,
stats_interval_seconds=constants.DATAPOINTS_INTERVAL_SECONDS
):
"""
This base class implements the process which deals with accepting new
requests.
Note:
This class doesn't have to be used directly, you must inherit from
it and override the `get_handler()`` method to return an instance
of `BaseHandler`.
Args:
address (str): address (IPv4 or IPv6) the server needs to bind to.
port (int): the port the server needs to bind to.
def __init__(
self,
address,
port,
retries,
timeout,
server_stats_callback=None,
stats_interval_seconds=constants.DATAPOINTS_INTERVAL_SECONDS,
):
"""
This base class implements the process which deals with accepting new
requests.
Note:
This class doesn't have to be used directly, you must inherit from
it and override the `get_handler()`` method to return an instance
of `BaseHandler`.
Args:
address (str): address (IPv4 or IPv6) the server needs to bind to.
port (int): the port the server needs to bind to.