def new_channel(self, agent): c = Connection(self, agent) return c.initiate()
def new_channel(self, agent): d = self._factory.get_client() channel_wrapped = Channel(self, d, self._factory) c = Connection(channel_wrapped, agent) return c.initiate()
def get_connection(self, agent): c = Connection(self, agent) return c.initiate()