#NEWLINE# def encode_ip_timestamp( ip , timestamp ) : #NEWLINE# #INDENT# ip_chars = '' . join ( map ( chr , map ( int , ip . split ( '.' ) ) ) ) #NEWLINE# t = int ( timestamp ) #NEWLINE# ts = ( ( ( ip & 4278190080 ) >> 24 ) , ( ( t & 16711680 ) >> 16 ) , ( ( t & 65280 ) >> 8 ) , ( t & 255 ) ) #NEWLINE# ts_chars = '' . join ( map ( chr , ts ) ) #NEWLINE# return ( ip_chars + ts_chars )