notifly/server.py
def datagram_received(self, data, addr):
        """
        this method is called on each incoming UDP packet by asyncio module
        """
        try:
            source_ip = addr[0]
        except KeyError:
            logging.error('incomplete packet received, no src IP found')
            return
        try:
            addr[1]
        except KeyError:
            logging.error('incomplete packet received, no src port found')
            return
        request = self.unpack_from_wire(data)
        self.handle_request(request, addr)

        this method is called on each incoming UDP packet by asyncio module
        
this method is called on each incoming UDP packet by asyncio module
this method is called on each incoming UDP packet by asyncio module
def datagram_received(self, data, addr):
        try:
            source_ip = addr[0]
        except KeyError:
            logging.error('incomplete packet received, no src IP found')
            return
        try:
            addr[1]
        except KeyError:
            logging.error('incomplete packet received, no src port found')
            return
        request = self.unpack_from_wire(data)
        self.handle_request(request, addr)
def datagram_received ( self , data , addr ) : try : source_ip = addr [ 0 ] except KeyError : logging . error ( 'incomplete packet received, no src IP found' ) return try : addr [ 1 ] except KeyError : logging . error ( 'incomplete packet received, no src port found' ) return request = self . unpack_from_wire ( data ) self . handle_request ( request , addr )
this method is called on each incoming UDP packet by asyncio module
this method is called on each incoming UDP packet by asyncio module
"""
        this method is called on each incoming UDP packet by asyncio module
        """
self
data
addr