def receive(self, transport, myname):
with self.lock:<EOL><INDENT>self.transport = transport<EOL>transport.set_target(self)<EOL>self.me = JID(myname)<EOL>self.initiator = False<EOL>self._setup_stream_element_handlers()<EOL><DEDENT>
Receive an XMPP connection over the `transport`.

        :Parameters:
            - `transport`: an XMPP transport instance
            - `myname`: local stream endpoint name.