def handle_read(self):
        if _debug: deferred(UDPDirector._debug, "handle_read")

        try:
            msg, addr = self.socket.recvfrom(65536)
            if _debug: deferred(UDPDirector._debug, "    - received %d octets from %s", len(msg), addr)

            # send the PDU up to the client
            deferred(self._response, PDU(msg, source=addr))

        except socket.timeout as err:
            deferred(UDPDirector._error, "handle_read socket timeout: %s", err)
        except __HOLE__ as err:
            if err.args[0] == 11:
                pass
            else:
                deferred(UDPDirector._error, "handle_read socket error: %s", err)
dataset/ETHPy150Open JoelBender/bacpypes/py34/bacpypes/udp.py/UDPDirector.handle_read