'Initialize the SCSGate.'

def __init__(self, device, logger):

    self._logger = logger
    self._devices = {}
    self._devices_to_register = {}
    self._devices_to_register_lock = Lock()
    self._device_being_registered = None
    self._device_being_registered_lock = Lock()
    from scsgate.connection import Connection
    connection = Connection(device=device, logger=self._logger)
    from scsgate.reactor import Reactor
    self._reactor = Reactor(connection=connection, logger=self._logger, handle_message=self.handle_message)
