def _response(self, pdu):
        """Incoming datagrams are routed through an actor."""
        if _debug: UDPDirector._debug("_response %r", pdu)

        # get the destination
        addr = pdu.pduSource

        # get the peer
        peer = self.peers.get(addr, None)
        if not peer:
            peer = self.actorClass(self, addr)

        # send the message
        peer.response(pdu)
def _response ( self , pdu ) : if _debug : UDPDirector . _debug ( "_response %r" , pdu ) addr = pdu . pduSource peer = self . peers . get ( addr , None ) if not peer : peer = self . actorClass ( self , addr ) peer . response ( pdu )
Incoming datagrams are routed through an actor.