in reply to Re: Boolean logic with IP addresses
in thread Boolean logic with IP addresses
FYI, the "B" spec for unpack is "binary" as in a string of ASCII "1"s and "0"s. Take for example "192.168.10.1". Your code outputs:
which isn't of much use for doing bit-wise stuff on IP addresses. It is the ASCII values of the characters from the strings "192", "168", "10", and "1" printed in binary notation. - tye (but my friends call me "Tye")001100010011100100110010 001100010011011000111000 0011000100110000 00110001
|
|---|