UDPFile_sender.py
def parse_data(self, data):
        ''' Parse data to int array and return header and body. '''
        data_array = []
        for byte_idx, byte in enumerate(data):
            data_array.append(int(byte))
        header = data_array[0:HEADER_SIZE]
        body =   data_array[HEADER_SIZE:]

        return header, body
 Parse data to int array and return header and body. 
Parse data to int array and return header and body.
Parse data to int array and return header and body .
def parse_data(self, data):
        data_array = []
        for byte_idx, byte in enumerate(data):
            data_array.append(int(byte))
        header = data_array[0:HEADER_SIZE]
        body =   data_array[HEADER_SIZE:]
        return header, body
def parse_data ( self , data ) : data_array = [ ] for byte_idx , byte in enumerate ( data ) : data_array . append ( int ( byte ) ) header = data_array [ 0 : HEADER_SIZE ] body = data_array [ HEADER_SIZE : ] return header , body
Parse data to int array and return header and body.
Parse data to int array and return header and body .
''' Parse data to int array and return header and body. '''
self
data