#NEWLINE# def _handling_incoming_packet( self , packet ) : #NEWLINE# #INDENT# ( data , cksum ) = packet [ 1 : ] . split ( '#' ) #NEWLINE# computedCksum = checksum ( data ) #NEWLINE# goodPacket = ( computedCksum . lower ( ) == cksum . lower ( ) ) #NEWLINE# if self . send_acks : #NEWLINE# #INDENT# ack = ( '+' if cksum else '-' ) #NEWLINE# self . _abstract_socket . write ( ack ) #NEWLINE# if LOG_ACK : #NEWLINE# #INDENT# logging . debug ( ack ) #NEWLINE# #UNINDENT# #UNINDENT# if goodPacket : #NEWLINE# #INDENT# self . _receive_queue . put ( packet )