#NEWLINE# def handle_event( self , sock , fd , event ) : #NEWLINE# #INDENT# if ( sock == self . _server_socket ) : #NEWLINE# #INDENT# if ( event & eventloop . POLL_ERR ) : #NEWLINE# #INDENT# logging . error ( 'UDP server_socket err' ) #NEWLINE# #UNINDENT# self . _handle_server ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( sock and ( fd in self . _sockets ) ) : #NEWLINE# #INDENT# if ( event & eventloop . POLL_ERR ) : #NEWLINE# #INDENT# logging . error ( 'UDP client_socket err' ) #NEWLINE# #UNINDENT# self . _handle_client ( sock )