'transport is the source of the connection (e.g, TCPTransport).'

def __init__(self, transport):

    EventMixin.__init__(self)
    self._is_connected = True
    self._transport = transport
    self._newlines = False
    self._buf = bytes()
    (key, num) = self._transport._nexus.generate_session()
    (self._session_id, self._session_num) = (key, num)
